← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 39
  3. line 3
  4. 5000
  5. line 3
  6. False
  7. sorting the scores
  8. sorting the scores
  9. input
  10. input
  11. tapping a button
  12. line 2
  13. 40
  14. False
  15. 13000
  16. a buzz (vibration)
  17. 450
  18. 54
  19. a result on screen
  20. adding up a bill
  21. a result on screen
  22. output
  23. speaking a command
  24. line 3
  25. 15000
  26. True
  27. 310
  28. 120
  29. input
  30. 12000
  31. checking a password
  32. checking a password
  33. False
  34. a buzz (vibration)
  35. tapping a button
  36. False
  37. a pop-up message
  38. 50
  39. typing your age
  40. False

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