← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. speaking a command
  3. checking a password
  4. 10000
  5. line 3
  6. line 3
  7. taking a photo
  8. input
  9. typing your age
  10. line 3
  11. tapping a button
  12. typing your age
  13. working out a tip
  14. line 3
  15. a result on screen
  16. adding up a bill
  17. True
  18. processing
  19. checking a password
  20. 470
  21. line 3
  22. 4000
  23. line 3
  24. 540
  25. 31
  26. taking a photo
  27. True
  28. False
  29. processing
  30. False
  31. processing
  32. 255
  33. line 3
  34. a result on screen
  35. 6000
  36. False
  37. False
  38. input
  39. 7000
  40. False

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