← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. line 3
  3. line 3
  4. typing your age
  5. a beep sound
  6. input
  7. working out a tip
  8. line 3
  9. False
  10. 190
  11. a buzz (vibration)
  12. True
  13. a result on screen
  14. output
  15. 470
  16. input
  17. line 3
  18. processing
  19. 9000
  20. sorting the scores
  21. 18
  22. output
  23. a pop-up message
  24. working out a tip
  25. True
  26. 90
  27. line 3
  28. False
  29. 500
  30. adding up a bill
  31. input
  32. False
  33. 4000
  34. line 3
  35. line 3
  36. line 3
  37. 52
  38. processing
  39. True
  40. line 3

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