← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. True
  3. line 3
  4. working out a tip
  5. 150
  6. speaking a command
  7. 180
  8. True
  9. taking a photo
  10. line 2
  11. adding up a bill
  12. a result on screen
  13. 160
  14. True
  15. output
  16. False
  17. line 3
  18. 13000
  19. typing your age
  20. 460
  21. False
  22. line 3
  23. 130
  24. 59
  25. False
  26. input
  27. a beep sound
  28. True
  29. working out a tip
  30. output
  31. 61
  32. taking a photo
  33. processing
  34. a pop-up message
  35. typing your age
  36. a result on screen
  37. False
  38. line 3
  39. line 2
  40. False

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