← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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