← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. input
  3. line 2
  4. checking a password
  5. line 3
  6. speaking a command
  7. tapping a button
  8. 14000
  9. line 3
  10. False
  11. 79
  12. line 2
  13. sorting the scores
  14. True
  15. line 3
  16. line 3
  17. 110
  18. 5000
  19. False
  20. input
  21. line 3
  22. False
  23. typing your age
  24. input
  25. 76
  26. True
  27. line 3
  28. adding up a bill
  29. 160
  30. 190
  31. line 3
  32. False
  33. 41
  34. line 3
  35. a beep sound
  36. a buzz (vibration)
  37. a buzz (vibration)
  38. a result on screen
  39. line 3
  40. line 3

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