← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. line 3
  3. 360
  4. a result on screen
  5. tapping a button
  6. output
  7. sorting the scores
  8. 500
  9. False
  10. line 3
  11. a beep sound
  12. input
  13. working out a tip
  14. 90
  15. line 2
  16. 130
  17. True
  18. 330
  19. True
  20. processing
  21. line 3
  22. 36
  23. line 2
  24. line 2
  25. line 3
  26. 165
  27. 540
  28. input
  29. False
  30. line 3
  31. typing your age
  32. output
  33. line 3
  34. line 2
  35. 11000
  36. input
  37. line 3
  38. line 3
  39. checking a password
  40. a buzz (vibration)

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