← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. processing
  3. a buzz (vibration)
  4. a beep sound
  5. a pop-up message
  6. 5000
  7. line 3
  8. typing your age
  9. input
  10. 6000
  11. input
  12. line 3
  13. False
  14. 450
  15. checking a password
  16. True
  17. 15000
  18. False
  19. 11000
  20. a pop-up message
  21. output
  22. line 3
  23. output
  24. line 3
  25. adding up a bill
  26. line 3
  27. output
  28. True
  29. line 3
  30. 13000
  31. True
  32. a result on screen
  33. line 3
  34. input
  35. sorting the scores
  36. True
  37. False
  38. 430
  39. sorting the scores
  40. 490

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