← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. 4000
  3. 67
  4. input
  5. False
  6. working out a tip
  7. True
  8. output
  9. line 3
  10. typing your age
  11. processing
  12. 57
  13. input
  14. line 3
  15. True
  16. adding up a bill
  17. line 3
  18. 67
  19. a buzz (vibration)
  20. checking a password
  21. a result on screen
  22. a pop-up message
  23. 9000
  24. a beep sound
  25. speaking a command
  26. processing
  27. line 3
  28. checking a password
  29. False
  30. 285
  31. a beep sound
  32. False
  33. speaking a command
  34. 80
  35. 150
  36. True
  37. 15000
  38. True
  39. False
  40. False

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