← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 410
  2. output
  3. 14
  4. line 3
  5. line 3
  6. input
  7. working out a tip
  8. True
  9. input
  10. line 3
  11. True
  12. processing
  13. a beep sound
  14. output
  15. output
  16. False
  17. 40
  18. 11000
  19. input
  20. 20
  21. line 3
  22. checking a password
  23. False
  24. line 3
  25. 510
  26. output
  27. 200
  28. line 3
  29. line 3
  30. sorting the scores
  31. sorting the scores
  32. False
  33. a result on screen
  34. taking a photo
  35. 100
  36. taking a photo
  37. 190
  38. line 3
  39. checking a password
  40. False

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