← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 195
  2. adding up a bill
  3. processing
  4. line 3
  5. a beep sound
  6. False
  7. True
  8. False
  9. input
  10. tapping a button
  11. 120
  12. taking a photo
  13. line 3
  14. False
  15. input
  16. checking a password
  17. False
  18. line 2
  19. 40
  20. taking a photo
  21. processing
  22. 310
  23. line 3
  24. True
  25. 225
  26. 2000
  27. checking a password
  28. output
  29. line 3
  30. 5000
  31. a pop-up message
  32. line 2
  33. False
  34. line 3
  35. line 3
  36. processing
  37. working out a tip
  38. typing your age
  39. line 2
  40. input

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