← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. False
  3. 13
  4. True
  5. line 2
  6. line 2
  7. line 2
  8. output
  9. typing your age
  10. taking a photo
  11. False
  12. True
  13. line 3
  14. output
  15. line 3
  16. input
  17. True
  18. False
  19. 80
  20. line 3
  21. 5000
  22. adding up a bill
  23. checking a password
  24. line 3
  25. 80
  26. 9000
  27. output
  28. 280
  29. 270
  30. sorting the scores
  31. line 3
  32. a result on screen
  33. 380
  34. line 3
  35. processing
  36. 160
  37. processing
  38. input
  39. a pop-up message
  40. True

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