← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. True
  3. a buzz (vibration)
  4. tapping a button
  5. False
  6. adding up a bill
  7. working out a tip
  8. 380
  9. True
  10. line 3
  11. line 3
  12. False
  13. False
  14. processing
  15. speaking a command
  16. line 3
  17. line 3
  18. line 3
  19. line 3
  20. sorting the scores
  21. processing
  22. a beep sound
  23. checking a password
  24. input
  25. a pop-up message
  26. output
  27. True
  28. 350
  29. typing your age
  30. line 3
  31. True
  32. input
  33. 57
  34. 110
  35. processing
  36. False
  37. tapping a button
  38. line 3
  39. sorting the scores
  40. True

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