← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. line 3
  3. input
  4. 140
  5. 3000
  6. True
  7. working out a tip
  8. typing your age
  9. False
  10. checking a password
  11. a buzz (vibration)
  12. 500
  13. False
  14. output
  15. line 3
  16. checking a password
  17. False
  18. line 3
  19. line 2
  20. 50
  21. 39
  22. line 3
  23. line 3
  24. line 3
  25. 160
  26. True
  27. 180
  28. False
  29. 275
  30. 2000
  31. taking a photo
  32. False
  33. 600
  34. True
  35. 76
  36. a pop-up message
  37. working out a tip
  38. taking a photo
  39. a pop-up message
  40. 190

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