← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. input
  3. line 3
  4. True
  5. typing your age
  6. taking a photo
  7. adding up a bill
  8. 450
  9. 3000
  10. a buzz (vibration)
  11. line 3
  12. 325
  13. 41
  14. input
  15. tapping a button
  16. 9000
  17. False
  18. True
  19. input
  20. False
  21. speaking a command
  22. 450
  23. 20
  24. 4000
  25. line 3
  26. 560
  27. line 3
  28. processing
  29. working out a tip
  30. processing
  31. line 3
  32. line 2
  33. a result on screen
  34. True
  35. 71
  36. adding up a bill
  37. 120
  38. sorting the scores
  39. typing your age
  40. False

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