← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. line 2
  4. False
  5. speaking a command
  6. typing your age
  7. line 2
  8. line 3
  9. True
  10. output
  11. sorting the scores
  12. a result on screen
  13. False
  14. checking a password
  15. 30
  16. speaking a command
  17. 120
  18. line 2
  19. 225
  20. processing
  21. 6000
  22. 5000
  23. line 3
  24. 90
  25. line 3
  26. input
  27. True
  28. adding up a bill
  29. input
  30. processing
  31. line 3
  32. processing
  33. a beep sound
  34. True
  35. output
  36. True
  37. line 2
  38. 390
  39. a pop-up message
  40. 76

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