← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. False
  3. 300
  4. a buzz (vibration)
  5. output
  6. True
  7. a beep sound
  8. adding up a bill
  9. processing
  10. False
  11. taking a photo
  12. True
  13. line 3
  14. tapping a button
  15. 90
  16. input
  17. a beep sound
  18. speaking a command
  19. checking a password
  20. line 3
  21. line 3
  22. 14000
  23. input
  24. line 2
  25. working out a tip
  26. processing
  27. line 3
  28. False
  29. a pop-up message
  30. 110
  31. output
  32. False
  33. a result on screen
  34. 540
  35. False
  36. 120
  37. False
  38. a result on screen
  39. True
  40. False

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