← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. adding up a bill
  4. processing
  5. processing
  6. line 3
  7. True
  8. line 3
  9. processing
  10. False
  11. working out a tip
  12. line 2
  13. 75
  14. typing your age
  15. a result on screen
  16. 3000
  17. line 3
  18. checking a password
  19. output
  20. 325
  21. line 3
  22. input
  23. line 3
  24. True
  25. False
  26. True
  27. output
  28. a beep sound
  29. True
  30. line 3
  31. input
  32. line 2
  33. line 3
  34. False
  35. speaking a command
  36. line 3
  37. line 3
  38. line 3
  39. line 3
  40. line 3

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