← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 7 · 40 questions
TalentJR

Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.

NameDateTime takenScore ___ / 40
  1. 1.🔍 Which is the odd one out? (a) taking a photo (b) tapping a button (c) speaking a command (d) a pop-up message
  2. 2.⚙️ What number does this app show?
    let price = 250; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  3. 3.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 15; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 3 (c) line 2
  4. 4.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 80; // typed by the user
    line 2: let friends = 2; // typed by the user
    line 3: let share = bill / friends;
    line 4: show(share);
    (a) line 4 (b) line 3 (c) line 1 (d) line 2
  5. 5.⚙️ What number does this app show?
    let price = 110; // typed by the user
    let off = 40; // typed by the user
    let pay = price - off;
    show(pay);
  6. 6.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 11; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 2 (c) line 1
  7. 7.⚙️ What number does this app show?
    let price = 50; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  8. 8.True or false: a result on screen is processing. (a) False (b) True
  9. 9.🔍 Which is the odd one out? (a) sorting the scores (b) adding up a bill (c) working out a tip (d) taking a photo
  10. 10.⚙️ What number does this app show?
    let price = 50; // typed by the user
    let qty = 5; // typed by the user
    let total = price * qty;
    show(total);
  11. 11.True or false: typing your age is an input. (a) False (b) True
  12. 12.Which of these is processing? (a) tapping a button (b) a buzz (vibration) (c) working out a tip (d) typing your age
  13. 13.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 360; // typed by the user
    line 2: let off = 30; // typed by the user
    line 3: let pay = price - off;
    line 4: show(pay);
    (a) line 3 (b) line 2 (c) line 4 (d) line 1
  14. 14.⚙️ In an app, is adding up a bill an input, processing or an output? (a) processing (b) input (c) output
  15. 15.⚙️ In an app, is a result on screen an input, processing or an output? (a) output (b) processing (c) input
  16. 16.True or false: typing your age is an output. (a) True (b) False
  17. 17.⚙️ What number does this app show?
    let price = 15; // typed by the user
    let qty = 2; // typed by the user
    let total = price * qty;
    show(total);
  18. 18.⚙️ In an app, is typing your age an input, processing or an output? (a) output (b) input (c) processing
  19. 19.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
  20. 20.True or false: tapping a button is an input. (a) False (b) True
  21. 21.⚙️ What number does this app show?
    let price = 340; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);
  22. 22.⚙️ In an app, is working out a tip an input, processing or an output? (a) input (b) processing (c) output
  23. 23.⚙️ What number does this app show?
    let price = 560; // typed by the user
    let off = 20; // typed by the user
    let pay = price - off;
    show(pay);
  24. 24.Which of these is an output? (a) taking a photo (b) typing your age (c) a result on screen (d) speaking a command
  25. 25.⚙️ What number does this app show?
    let km = 12; // typed by the user
    let metres = km * 1000;
    show(metres);
  26. 26.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 85; // typed by the user
    line 2: let qty = 6; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 3 (b) line 2 (c) line 1 (d) line 4
  27. 27.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 45; // typed by the user
    line 2: let qty = 3; // typed by the user
    line 3: let total = price * qty;
    line 4: show(total);
    (a) line 4 (b) line 2 (c) line 3 (d) line 1
  28. 28.Which of these is processing? (a) a result on screen (b) tapping a button (c) typing your age (d) adding up a bill
  29. 29.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
  30. 30.🔍 Which is the odd one out? (a) typing your age (b) tapping a button (c) speaking a command (d) checking a password
  31. 31.True or false: checking a password is an input. (a) False (b) True
  32. 32.True or false: sorting the scores is processing. (a) True (b) False
  33. 33.⚙️ What number does this app show?
    let km = 13; // typed by the user
    let metres = km * 1000;
    show(metres);
  34. 34.⚙️ What number does this app show?
    let price = 25; // typed by the user
    let qty = 3; // typed by the user
    let total = price * qty;
    show(total);
  35. 35.Which of these is processing? (a) tapping a button (b) a pop-up message (c) sorting the scores (d) taking a photo
  36. 36.🔍 Which is the odd one out? (a) tapping a button (b) working out a tip (c) sorting the scores (d) adding up a bill
  37. 37.Which of these is an input? (a) sorting the scores (b) a pop-up message (c) typing your age (d) a beep sound
  38. 38.⚙️ What number does this app show?
    let km = 11; // typed by the user
    let metres = km * 1000;
    show(metres);
  39. 39.Which of these is processing? (a) tapping a button (b) a buzz (vibration) (c) a beep sound (d) checking a password
  40. 40.⚙️ What number does this app show?
    let price = 190; // typed by the user
    let off = 10; // typed by the user
    let pay = price - off;
    show(pay);

Answer key

  1. a pop-up message
  2. 240
  3. line 2
  4. line 3
  5. 70
  6. line 2
  7. 150
  8. False
  9. taking a photo
  10. 250
  11. True
  12. working out a tip
  13. line 3
  14. processing
  15. output
  16. False
  17. 30
  18. input
  19. input
  20. True
  21. 330
  22. processing
  23. 540
  24. a result on screen
  25. 12000
  26. line 3
  27. line 3
  28. adding up a bill
  29. input
  30. checking a password
  31. False
  32. True
  33. 13000
  34. 75
  35. sorting the scores
  36. tapping a button
  37. typing your age
  38. 11000
  39. checking a password
  40. 180

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students