← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 600
  2. 50
  3. True
  4. True
  5. 510
  6. taking a photo
  7. output
  8. False
  9. False
  10. 330
  11. typing your age
  12. 200
  13. adding up a bill
  14. 13000
  15. line 3
  16. 400
  17. a result on screen
  18. 60
  19. 130
  20. 55
  21. tapping a button
  22. line 3
  23. 320
  24. output
  25. 420
  26. sorting the scores
  27. line 3
  28. True
  29. a buzz (vibration)
  30. output
  31. line 3
  32. 4000
  33. 69
  34. 160
  35. 170
  36. 130
  37. sorting the scores
  38. line 3
  39. working out a tip
  40. False

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