← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. adding up a bill
  3. False
  4. taking a photo
  5. typing your age
  6. 76
  7. working out a tip
  8. input
  9. 15000
  10. line 3
  11. a result on screen
  12. False
  13. 290
  14. tapping a button
  15. line 3
  16. True
  17. working out a tip
  18. line 3
  19. output
  20. input
  21. line 3
  22. line 3
  23. processing
  24. checking a password
  25. line 3
  26. line 3
  27. True
  28. False
  29. speaking a command
  30. line 2
  31. line 3
  32. False
  33. processing
  34. True
  35. 2000
  36. input
  37. a buzz (vibration)
  38. typing your age
  39. False
  40. a buzz (vibration)

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