← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 80
  3. output
  4. taking a photo
  5. False
  6. line 2
  7. False
  8. processing
  9. line 3
  10. 13000
  11. input
  12. line 3
  13. 11000
  14. True
  15. True
  16. sorting the scores
  17. 180
  18. line 3
  19. False
  20. True
  21. output
  22. False
  23. a buzz (vibration)
  24. input
  25. line 3
  26. 180
  27. True
  28. False
  29. 600
  30. False
  31. 225
  32. 280
  33. a pop-up message
  34. False
  35. True
  36. speaking a command
  37. output
  38. 50
  39. 57
  40. processing

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