← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. output
  3. line 3
  4. input
  5. False
  6. True
  7. a pop-up message
  8. False
  9. 55
  10. line 3
  11. 75
  12. False
  13. 150
  14. a beep sound
  15. 14000
  16. line 3
  17. checking a password
  18. False
  19. checking a password
  20. typing your age
  21. line 3
  22. False
  23. sorting the scores
  24. sorting the scores
  25. 375
  26. False
  27. False
  28. working out a tip
  29. processing
  30. adding up a bill
  31. False
  32. False
  33. line 3
  34. a beep sound
  35. output
  36. True
  37. False
  38. 290
  39. 200
  40. a pop-up message

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