← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 53
  3. input
  4. sorting the scores
  5. 240
  6. 77
  7. line 2
  8. 100
  9. processing
  10. 11000
  11. a pop-up message
  12. line 3
  13. 400
  14. 330
  15. a buzz (vibration)
  16. 60
  17. line 2
  18. line 3
  19. line 2
  20. line 3
  21. line 3
  22. 7000
  23. output
  24. 470
  25. 350
  26. True
  27. checking a password
  28. line 2
  29. True
  30. 170
  31. line 3
  32. 69
  33. False
  34. True
  35. typing your age
  36. line 3
  37. line 3
  38. output
  39. 100
  40. speaking a command

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