← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 4000
  3. taking a photo
  4. 74
  5. speaking a command
  6. True
  7. typing your age
  8. output
  9. False
  10. a buzz (vibration)
  11. a result on screen
  12. 69
  13. a result on screen
  14. 340
  15. typing your age
  16. line 3
  17. input
  18. line 2
  19. True
  20. working out a tip
  21. True
  22. 500
  23. input
  24. line 3
  25. sorting the scores
  26. False
  27. 24
  28. line 3
  29. 320
  30. output
  31. False
  32. line 3
  33. False
  34. 13000
  35. True
  36. line 3
  37. tapping a button
  38. line 3
  39. False
  40. True

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