← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. False
  3. adding up a bill
  4. False
  5. sorting the scores
  6. True
  7. 45
  8. 12000
  9. a beep sound
  10. working out a tip
  11. input
  12. 50
  13. 33
  14. 79
  15. True
  16. 475
  17. a buzz (vibration)
  18. processing
  19. output
  20. line 3
  21. speaking a command
  22. a beep sound
  23. 420
  24. 450
  25. line 2
  26. 480
  27. 9000
  28. 480
  29. processing
  30. True
  31. taking a photo
  32. line 3
  33. False
  34. output
  35. False
  36. 310
  37. a buzz (vibration)
  38. 170
  39. 90
  40. False

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