← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. True
  4. line 3
  5. output
  6. line 3
  7. 200
  8. typing your age
  9. adding up a bill
  10. input
  11. 27
  12. False
  13. 53
  14. adding up a bill
  15. processing
  16. line 3
  17. sorting the scores
  18. False
  19. a pop-up message
  20. True
  21. line 3
  22. line 2
  23. True
  24. working out a tip
  25. processing
  26. line 3
  27. line 3
  28. a beep sound
  29. 120
  30. 80
  31. True
  32. 150
  33. False
  34. line 3
  35. input
  36. sorting the scores
  37. 5000
  38. False
  39. 35
  40. 40

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