← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. output
  3. 90
  4. line 3
  5. 450
  6. input
  7. 450
  8. True
  9. line 3
  10. line 3
  11. 3000
  12. a beep sound
  13. output
  14. 165
  15. output
  16. typing your age
  17. False
  18. line 3
  19. processing
  20. speaking a command
  21. True
  22. 28
  23. 70
  24. a result on screen
  25. input
  26. line 2
  27. 17
  28. 250
  29. 170
  30. checking a password
  31. working out a tip
  32. line 3
  33. input
  34. True
  35. 61
  36. 260
  37. working out a tip
  38. 275
  39. 18
  40. input

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