← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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