← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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