← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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