← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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