← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. output
  3. line 3
  4. processing
  5. False
  6. 6000
  7. 120
  8. line 3
  9. 520
  10. a result on screen
  11. True
  12. a buzz (vibration)
  13. 330
  14. 12000
  15. a buzz (vibration)
  16. tapping a button
  17. line 3
  18. output
  19. True
  20. a pop-up message
  21. True
  22. True
  23. checking a password
  24. output
  25. input
  26. typing your age
  27. 300
  28. True
  29. taking a photo
  30. 10
  31. True
  32. line 3
  33. True
  34. 150
  35. 45
  36. True
  37. line 3
  38. 170
  39. checking a password
  40. True

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