← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 220
  2. 11000
  3. True
  4. 110
  5. output
  6. True
  7. taking a photo
  8. working out a tip
  9. 210
  10. checking a password
  11. 5000
  12. 240
  13. processing
  14. False
  15. a buzz (vibration)
  16. line 3
  17. 510
  18. line 3
  19. 150
  20. True
  21. True
  22. line 3
  23. False
  24. 50
  25. output
  26. input
  27. 135
  28. False
  29. typing your age
  30. 230
  31. a pop-up message
  32. False
  33. adding up a bill
  34. 29
  35. line 2
  36. a result on screen
  37. speaking a command
  38. line 3
  39. adding up a bill
  40. tapping a button

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