← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. True
  3. input
  4. False
  5. 22
  6. 48
  7. speaking a command
  8. line 3
  9. a buzz (vibration)
  10. False
  11. True
  12. adding up a bill
  13. sorting the scores
  14. 13000
  15. a result on screen
  16. working out a tip
  17. True
  18. adding up a bill
  19. 290
  20. a pop-up message
  21. tapping a button
  22. a beep sound
  23. input
  24. 480
  25. output
  26. line 3
  27. line 3
  28. line 3
  29. False
  30. False
  31. taking a photo
  32. False
  33. line 2
  34. 6000
  35. True
  36. 140
  37. 3000
  38. False
  39. typing your age
  40. processing

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