← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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