← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. False
  3. line 3
  4. working out a tip
  5. True
  6. 135
  7. True
  8. True
  9. 320
  10. True
  11. adding up a bill
  12. line 2
  13. input
  14. 75
  15. line 3
  16. False
  17. tapping a button
  18. 530
  19. False
  20. speaking a command
  21. a result on screen
  22. sorting the scores
  23. line 3
  24. 13000
  25. a buzz (vibration)
  26. 470
  27. True
  28. line 3
  29. a buzz (vibration)
  30. speaking a command
  31. 430
  32. 12
  33. 30
  34. False
  35. False
  36. 180
  37. 15
  38. typing your age
  39. line 3
  40. line 2

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