← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. adding up a bill
  3. 24
  4. a buzz (vibration)
  5. processing
  6. a beep sound
  7. 15000
  8. True
  9. False
  10. False
  11. line 3
  12. a buzz (vibration)
  13. line 3
  14. output
  15. True
  16. output
  17. True
  18. line 3
  19. False
  20. typing your age
  21. input
  22. 420
  23. input
  24. 26
  25. 90
  26. False
  27. sorting the scores
  28. 470
  29. 6000
  30. line 3
  31. True
  32. line 3
  33. 225
  34. tapping a button
  35. working out a tip
  36. 20
  37. output
  38. line 3
  39. False
  40. 19

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