← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 3000
  3. line 3
  4. line 3
  5. 45
  6. line 3
  7. 210
  8. line 2
  9. 10000
  10. speaking a command
  11. a buzz (vibration)
  12. line 2
  13. output
  14. 360
  15. 225
  16. 5000
  17. speaking a command
  18. output
  19. taking a photo
  20. input
  21. True
  22. line 3
  23. True
  24. line 2
  25. 11000
  26. True
  27. 4000
  28. line 3
  29. a beep sound
  30. line 3
  31. False
  32. taking a photo
  33. line 3
  34. working out a tip
  35. typing your age
  36. False
  37. a result on screen
  38. line 3
  39. True
  40. a buzz (vibration)

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