← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. True
  3. working out a tip
  4. line 2
  5. adding up a bill
  6. a buzz (vibration)
  7. line 3
  8. True
  9. line 3
  10. False
  11. 49
  12. line 3
  13. a pop-up message
  14. line 3
  15. line 3
  16. line 3
  17. output
  18. typing your age
  19. checking a password
  20. False
  21. True
  22. line 3
  23. input
  24. a beep sound
  25. input
  26. True
  27. 59
  28. 220
  29. line 2
  30. 65
  31. adding up a bill
  32. input
  33. a buzz (vibration)
  34. output
  35. checking a password
  36. line 3
  37. False
  38. False
  39. processing
  40. typing your age

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