← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. working out a tip
  3. False
  4. 68
  5. False
  6. a result on screen
  7. a result on screen
  8. a beep sound
  9. 69
  10. False
  11. processing
  12. processing
  13. False
  14. working out a tip
  15. line 3
  16. typing your age
  17. tapping a button
  18. False
  19. 7000
  20. 70
  21. line 3
  22. input
  23. True
  24. False
  25. line 3
  26. line 2
  27. False
  28. input
  29. output
  30. line 2
  31. a pop-up message
  32. line 2
  33. True
  34. sorting the scores
  35. False
  36. typing your age
  37. 24
  38. False
  39. adding up a bill
  40. tapping a button

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