← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 15000
  2. sorting the scores
  3. tapping a button
  4. 44
  5. typing your age
  6. taking a photo
  7. input
  8. a pop-up message
  9. 73
  10. 75
  11. line 2
  12. line 3
  13. processing
  14. output
  15. True
  16. 54
  17. True
  18. 5000
  19. working out a tip
  20. 180
  21. False
  22. True
  23. tapping a button
  24. taking a photo
  25. line 2
  26. False
  27. input
  28. line 3
  29. line 3
  30. line 2
  31. a result on screen
  32. True
  33. a beep sound
  34. False
  35. True
  36. line 3
  37. line 3
  38. 140
  39. adding up a bill
  40. False

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