← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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