← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. True
  3. False
  4. output
  5. 9000
  6. output
  7. True
  8. line 3
  9. line 3
  10. tapping a button
  11. False
  12. 120
  13. line 3
  14. working out a tip
  15. False
  16. taking a photo
  17. 8000
  18. True
  19. 260
  20. line 3
  21. processing
  22. speaking a command
  23. False
  24. 260
  25. False
  26. 475
  27. a pop-up message
  28. line 2
  29. sorting the scores
  30. output
  31. False
  32. input
  33. adding up a bill
  34. line 2
  35. 300
  36. False
  37. line 3
  38. typing your age
  39. False
  40. True

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