← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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