← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 12000
  3. checking a password
  4. tapping a button
  5. output
  6. True
  7. 3000
  8. False
  9. False
  10. input
  11. typing your age
  12. a result on screen
  13. line 3
  14. line 3
  15. input
  16. line 3
  17. 5000
  18. speaking a command
  19. sorting the scores
  20. a buzz (vibration)
  21. 120
  22. processing
  23. checking a password
  24. adding up a bill
  25. True
  26. input
  27. line 3
  28. line 2
  29. line 3
  30. input
  31. False
  32. line 3
  33. 380
  34. 510
  35. 6000
  36. 10000
  37. 300
  38. a pop-up message
  39. False
  40. line 2

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