← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 11
  2. input
  3. True
  4. checking a password
  5. sorting the scores
  6. 56
  7. line 3
  8. tapping a button
  9. a pop-up message
  10. output
  11. 37
  12. a buzz (vibration)
  13. line 3
  14. taking a photo
  15. taking a photo
  16. speaking a command
  17. adding up a bill
  18. a buzz (vibration)
  19. 510
  20. speaking a command
  21. 200
  22. output
  23. input
  24. 425
  25. 240
  26. 20
  27. line 3
  28. sorting the scores
  29. line 2
  30. input
  31. True
  32. line 3
  33. typing your age
  34. 70
  35. 75
  36. output
  37. 120
  38. 90
  39. line 3
  40. False

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