← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. False
  3. output
  4. False
  5. 450
  6. a buzz (vibration)
  7. taking a photo
  8. False
  9. a buzz (vibration)
  10. True
  11. processing
  12. line 3
  13. 200
  14. True
  15. 200
  16. 330
  17. a result on screen
  18. 12
  19. processing
  20. a result on screen
  21. False
  22. processing
  23. line 3
  24. a beep sound
  25. True
  26. False
  27. a pop-up message
  28. 200
  29. checking a password
  30. 16
  31. input
  32. 140
  33. output
  34. working out a tip
  35. True
  36. False
  37. line 3
  38. True
  39. line 3
  40. typing your age

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