← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 6000
  3. 2000
  4. 230
  5. 14000
  6. 20
  7. input
  8. True
  9. 26
  10. False
  11. line 3
  12. speaking a command
  13. tapping a button
  14. line 3
  15. a buzz (vibration)
  16. False
  17. adding up a bill
  18. 110
  19. 50
  20. False
  21. line 3
  22. False
  23. 8000
  24. a pop-up message
  25. working out a tip
  26. a buzz (vibration)
  27. sorting the scores
  28. taking a photo
  29. True
  30. 47
  31. line 2
  32. typing your age
  33. speaking a command
  34. a result on screen
  35. 90
  36. False
  37. input
  38. True
  39. adding up a bill
  40. False

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