← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. adding up a bill
  3. False
  4. checking a password
  5. False
  6. line 2
  7. line 3
  8. 6000
  9. input
  10. 67
  11. a beep sound
  12. processing
  13. typing your age
  14. 120
  15. line 3
  16. a buzz (vibration)
  17. 170
  18. line 3
  19. False
  20. True
  21. False
  22. typing your age
  23. input
  24. 40
  25. processing
  26. a beep sound
  27. a pop-up message
  28. False
  29. line 3
  30. False
  31. output
  32. 76
  33. False
  34. working out a tip
  35. 530
  36. 3000
  37. line 3
  38. taking a photo
  39. 550
  40. tapping a button

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