← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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