← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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