← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. input
  3. False
  4. line 3
  5. checking a password
  6. checking a password
  7. False
  8. adding up a bill
  9. tapping a button
  10. adding up a bill
  11. False
  12. 180
  13. a beep sound
  14. a pop-up message
  15. 250
  16. sorting the scores
  17. a buzz (vibration)
  18. line 3
  19. typing your age
  20. line 2
  21. 49
  22. True
  23. False
  24. working out a tip
  25. input
  26. 79
  27. False
  28. tapping a button
  29. False
  30. True
  31. line 3
  32. input
  33. a beep sound
  34. 32
  35. 240
  36. taking a photo
  37. a buzz (vibration)
  38. 22
  39. line 2
  40. line 3

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