← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. speaking a command
  3. checking a password
  4. True
  5. taking a photo
  6. 7000
  7. output
  8. True
  9. adding up a bill
  10. a result on screen
  11. 300
  12. line 3
  13. tapping a button
  14. 78
  15. line 2
  16. 73
  17. output
  18. True
  19. 360
  20. False
  21. line 3
  22. 225
  23. line 3
  24. True
  25. False
  26. input
  27. tapping a button
  28. False
  29. output
  30. True
  31. 480
  32. False
  33. line 3
  34. 360
  35. sorting the scores
  36. typing your age
  37. False
  38. 45
  39. 390
  40. False

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