← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. checking a password
  3. line 3
  4. False
  5. True
  6. True
  7. True
  8. processing
  9. processing
  10. input
  11. tapping a button
  12. processing
  13. taking a photo
  14. False
  15. output
  16. taking a photo
  17. 480
  18. line 3
  19. 260
  20. line 2
  21. typing your age
  22. adding up a bill
  23. adding up a bill
  24. a beep sound
  25. input
  26. a buzz (vibration)
  27. line 2
  28. 200
  29. a beep sound
  30. 74
  31. typing your age
  32. 12000
  33. True
  34. line 3
  35. 30
  36. line 3
  37. input
  38. output
  39. False
  40. False

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