← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 21
  3. 270
  4. line 3
  5. output
  6. input
  7. input
  8. 37
  9. processing
  10. line 3
  11. line 3
  12. True
  13. False
  14. a buzz (vibration)
  15. 12
  16. adding up a bill
  17. output
  18. speaking a command
  19. False
  20. line 3
  21. 13000
  22. 190
  23. False
  24. line 3
  25. processing
  26. line 3
  27. taking a photo
  28. input
  29. line 3
  30. False
  31. typing your age
  32. checking a password
  33. line 3
  34. 310
  35. line 3
  36. True
  37. input
  38. 71
  39. 230
  40. True

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