← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. line 3
  3. processing
  4. 2000
  5. sorting the scores
  6. False
  7. a result on screen
  8. tapping a button
  9. speaking a command
  10. input
  11. speaking a command
  12. True
  13. False
  14. 63
  15. a buzz (vibration)
  16. 250
  17. True
  18. line 3
  19. True
  20. line 3
  21. typing your age
  22. line 3
  23. True
  24. a pop-up message
  25. False
  26. input
  27. sorting the scores
  28. line 3
  29. 4000
  30. False
  31. True
  32. typing your age
  33. 170
  34. adding up a bill
  35. 280
  36. input
  37. False
  38. output
  39. False
  40. a beep sound

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