← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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