← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 14
  3. input
  4. input
  5. line 3
  6. line 2
  7. a buzz (vibration)
  8. 240
  9. line 3
  10. 77
  11. speaking a command
  12. a pop-up message
  13. 73
  14. adding up a bill
  15. line 3
  16. True
  17. 200
  18. 160
  19. output
  20. line 3
  21. a pop-up message
  22. 270
  23. line 3
  24. taking a photo
  25. False
  26. checking a password
  27. True
  28. line 3
  29. line 2
  30. 39
  31. False
  32. 45
  33. False
  34. 30
  35. taking a photo
  36. 15
  37. processing
  38. line 2
  39. 8000
  40. input

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