← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. input
  3. input
  4. 60
  5. 190
  6. taking a photo
  7. False
  8. False
  9. sorting the scores
  10. input
  11. 30
  12. 45
  13. line 3
  14. 2000
  15. True
  16. adding up a bill
  17. adding up a bill
  18. checking a password
  19. working out a tip
  20. a result on screen
  21. processing
  22. True
  23. line 3
  24. line 3
  25. a beep sound
  26. line 3
  27. 79
  28. 6000
  29. False
  30. a buzz (vibration)
  31. a beep sound
  32. 7000
  33. line 3
  34. line 3
  35. 22
  36. 70
  37. output
  38. 8000
  39. 55
  40. line 3

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