← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. a result on screen
  3. a beep sound
  4. True
  5. a result on screen
  6. input
  7. output
  8. False
  9. processing
  10. line 3
  11. line 3
  12. sorting the scores
  13. 65
  14. working out a tip
  15. 340
  16. 5000
  17. input
  18. a pop-up message
  19. 30
  20. line 2
  21. False
  22. 540
  23. 69
  24. 74
  25. False
  26. 9000
  27. line 2
  28. output
  29. 6000
  30. 75
  31. output
  32. line 2
  33. 8000
  34. line 2
  35. 175
  36. False
  37. 180
  38. True
  39. False
  40. 30

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