← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. line 2
  3. speaking a command
  4. 120
  5. a pop-up message
  6. False
  7. False
  8. a result on screen
  9. input
  10. input
  11. taking a photo
  12. True
  13. 68
  14. tapping a button
  15. True
  16. working out a tip
  17. line 2
  18. a result on screen
  19. line 3
  20. a beep sound
  21. line 3
  22. line 3
  23. line 2
  24. working out a tip
  25. 240
  26. True
  27. 530
  28. True
  29. line 3
  30. input
  31. line 2
  32. True
  33. output
  34. 38
  35. 11000
  36. False
  37. taking a photo
  38. line 3
  39. line 2
  40. True

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