← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. checking a password
  3. False
  4. taking a photo
  5. working out a tip
  6. tapping a button
  7. line 2
  8. 120
  9. output
  10. checking a password
  11. True
  12. output
  13. processing
  14. taking a photo
  15. line 3
  16. adding up a bill
  17. 105
  18. line 3
  19. output
  20. line 3
  21. line 2
  22. a pop-up message
  23. False
  24. adding up a bill
  25. line 3
  26. output
  27. line 3
  28. sorting the scores
  29. line 3
  30. 70
  31. 38
  32. True
  33. line 3
  34. a pop-up message
  35. processing
  36. True
  37. False
  38. line 3
  39. line 3
  40. True

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