← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. input
  3. line 3
  4. input
  5. True
  6. line 2
  7. False
  8. adding up a bill
  9. 4000
  10. sorting the scores
  11. processing
  12. a beep sound
  13. line 2
  14. 28
  15. 420
  16. line 3
  17. output
  18. taking a photo
  19. line 3
  20. False
  21. 350
  22. line 3
  23. input
  24. 480
  25. a pop-up message
  26. 5000
  27. 425
  28. 200
  29. 400
  30. line 2
  31. False
  32. sorting the scores
  33. typing your age
  34. working out a tip
  35. True
  36. line 3
  37. 13
  38. line 3
  39. a result on screen
  40. True

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