← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. taking a photo
  3. a beep sound
  4. line 2
  5. processing
  6. False
  7. a buzz (vibration)
  8. False
  9. 4000
  10. line 3
  11. 70
  12. line 3
  13. 195
  14. checking a password
  15. typing your age
  16. speaking a command
  17. sorting the scores
  18. False
  19. a result on screen
  20. True
  21. 330
  22. line 3
  23. a pop-up message
  24. adding up a bill
  25. 75
  26. output
  27. line 2
  28. False
  29. line 2
  30. line 2
  31. checking a password
  32. a beep sound
  33. 12000
  34. 225
  35. False
  36. a pop-up message
  37. False
  38. processing
  39. a buzz (vibration)
  40. True

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