← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. 220
  3. True
  4. 30
  5. 12
  6. False
  7. output
  8. False
  9. input
  10. 200
  11. True
  12. line 3
  13. 38
  14. tapping a button
  15. False
  16. 14000
  17. processing
  18. adding up a bill
  19. 510
  20. False
  21. adding up a bill
  22. output
  23. False
  24. 57
  25. working out a tip
  26. typing your age
  27. True
  28. False
  29. processing
  30. 14
  31. speaking a command
  32. 170
  33. line 3
  34. input
  35. a buzz (vibration)
  36. line 3
  37. 4000
  38. line 2
  39. taking a photo
  40. False

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