← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. output
  3. input
  4. 53
  5. False
  6. working out a tip
  7. line 3
  8. 50
  9. processing
  10. 5000
  11. a beep sound
  12. 400
  13. line 3
  14. 23
  15. speaking a command
  16. line 3
  17. line 3
  18. False
  19. sorting the scores
  20. True
  21. True
  22. processing
  23. line 3
  24. a buzz (vibration)
  25. line 3
  26. sorting the scores
  27. False
  28. line 3
  29. input
  30. working out a tip
  31. False
  32. typing your age
  33. 70
  34. 15000
  35. 260
  36. True
  37. 13
  38. typing your age
  39. adding up a bill
  40. False

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