← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. sorting the scores
  3. 13000
  4. a beep sound
  5. adding up a bill
  6. line 2
  7. line 2
  8. working out a tip
  9. True
  10. a result on screen
  11. a pop-up message
  12. True
  13. input
  14. a beep sound
  15. line 3
  16. line 2
  17. taking a photo
  18. line 3
  19. typing your age
  20. line 2
  21. processing
  22. working out a tip
  23. checking a password
  24. a buzz (vibration)
  25. sorting the scores
  26. 80
  27. True
  28. taking a photo
  29. a buzz (vibration)
  30. 160
  31. line 3
  32. False
  33. line 2
  34. line 3
  35. 27
  36. 58
  37. True
  38. line 3
  39. 320
  40. True

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