← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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