← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 90
  2. tapping a button
  3. False
  4. input
  5. True
  6. processing
  7. line 3
  8. adding up a bill
  9. line 3
  10. 480
  11. 7000
  12. False
  13. line 3
  14. line 3
  15. input
  16. 2000
  17. line 3
  18. input
  19. False
  20. False
  21. 470
  22. a beep sound
  23. line 2
  24. a result on screen
  25. tapping a button
  26. 100
  27. False
  28. checking a password
  29. 135
  30. output
  31. processing
  32. taking a photo
  33. a result on screen
  34. checking a password
  35. False
  36. line 3
  37. 20
  38. True
  39. a beep sound
  40. line 3

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