← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. taking a photo
  3. line 2
  4. line 2
  5. 15
  6. typing your age
  7. True
  8. output
  9. False
  10. tapping a button
  11. speaking a command
  12. 540
  13. True
  14. input
  15. False
  16. 400
  17. line 3
  18. line 2
  19. input
  20. line 3
  21. 60
  22. line 3
  23. 50
  24. False
  25. 12000
  26. line 3
  27. False
  28. 2000
  29. True
  30. checking a password
  31. line 3
  32. True
  33. output
  34. False
  35. False
  36. a beep sound
  37. speaking a command
  38. True
  39. 23
  40. input

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