← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 380
  2. line 3
  3. output
  4. taking a photo
  5. 12000
  6. speaking a command
  7. False
  8. working out a tip
  9. False
  10. typing your age
  11. a buzz (vibration)
  12. input
  13. True
  14. a result on screen
  15. output
  16. False
  17. False
  18. a beep sound
  19. False
  20. a beep sound
  21. False
  22. typing your age
  23. taking a photo
  24. 420
  25. input
  26. 100
  27. checking a password
  28. adding up a bill
  29. 170
  30. speaking a command
  31. output
  32. True
  33. working out a tip
  34. line 3
  35. line 3
  36. 240
  37. line 3
  38. processing
  39. 6000
  40. 160

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