← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. False
  3. output
  4. taking a photo
  5. typing your age
  6. False
  7. False
  8. 90
  9. 190
  10. input
  11. line 3
  12. input
  13. line 3
  14. False
  15. output
  16. 300
  17. True
  18. line 3
  19. 9000
  20. tapping a button
  21. adding up a bill
  22. working out a tip
  23. 350
  24. input
  25. checking a password
  26. 2000
  27. 320
  28. True
  29. 75
  30. False
  31. False
  32. adding up a bill
  33. 195
  34. tapping a button
  35. a pop-up message
  36. line 3
  37. line 3
  38. typing your age
  39. False
  40. output

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