← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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