← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 75
  3. a result on screen
  4. line 3
  5. False
  6. line 3
  7. output
  8. input
  9. line 3
  10. 170
  11. taking a photo
  12. True
  13. True
  14. working out a tip
  15. 360
  16. a buzz (vibration)
  17. a buzz (vibration)
  18. a pop-up message
  19. False
  20. False
  21. a result on screen
  22. processing
  23. line 3
  24. taking a photo
  25. input
  26. False
  27. typing your age
  28. line 3
  29. 8000
  30. a beep sound
  31. output
  32. a pop-up message
  33. 450
  34. line 3
  35. speaking a command
  36. sorting the scores
  37. 440
  38. True
  39. line 2
  40. output

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