← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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