← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. 31
  3. adding up a bill
  4. False
  5. input
  6. output
  7. a beep sound
  8. taking a photo
  9. 180
  10. False
  11. a result on screen
  12. True
  13. line 2
  14. taking a photo
  15. line 3
  16. a beep sound
  17. input
  18. speaking a command
  19. 61
  20. 27
  21. line 3
  22. output
  23. processing
  24. line 3
  25. line 3
  26. False
  27. True
  28. adding up a bill
  29. checking a password
  30. 7000
  31. line 3
  32. False
  33. typing your age
  34. False
  35. line 3
  36. True
  37. line 3
  38. False
  39. line 3
  40. 28

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