← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. 5000
  3. adding up a bill
  4. line 3
  5. line 3
  6. line 3
  7. True
  8. taking a photo
  9. 270
  10. 40
  11. 55
  12. 27
  13. input
  14. input
  15. line 3
  16. False
  17. True
  18. True
  19. False
  20. False
  21. speaking a command
  22. a result on screen
  23. line 2
  24. input
  25. 160
  26. 60
  27. line 3
  28. typing your age
  29. a beep sound
  30. True
  31. False
  32. 300
  33. 3000
  34. line 3
  35. line 3
  36. 150
  37. True
  38. processing
  39. False
  40. line 3

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