← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. a buzz (vibration)
  3. a pop-up message
  4. 240
  5. True
  6. processing
  7. checking a password
  8. typing your age
  9. False
  10. 65
  11. typing your age
  12. line 2
  13. line 3
  14. working out a tip
  15. taking a photo
  16. a pop-up message
  17. working out a tip
  18. False
  19. False
  20. taking a photo
  21. tapping a button
  22. True
  23. output
  24. 30
  25. 3000
  26. True
  27. line 2
  28. tapping a button
  29. 220
  30. line 2
  31. line 3
  32. processing
  33. a result on screen
  34. line 3
  35. False
  36. line 2
  37. a buzz (vibration)
  38. 460
  39. output
  40. line 3

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