← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. working out a tip
  3. tapping a button
  4. True
  5. 79
  6. line 3
  7. line 3
  8. False
  9. True
  10. a buzz (vibration)
  11. output
  12. speaking a command
  13. adding up a bill
  14. 60
  15. 230
  16. False
  17. checking a password
  18. speaking a command
  19. typing your age
  20. 220
  21. output
  22. adding up a bill
  23. 110
  24. True
  25. line 3
  26. taking a photo
  27. input
  28. 12000
  29. a pop-up message
  30. line 3
  31. sorting the scores
  32. False
  33. processing
  34. line 3
  35. a beep sound
  36. 59
  37. line 3
  38. True
  39. processing
  40. 10000

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