← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 6000
  2. line 2
  3. adding up a bill
  4. working out a tip
  5. False
  6. a buzz (vibration)
  7. processing
  8. False
  9. processing
  10. input
  11. 8000
  12. line 2
  13. 360
  14. processing
  15. 70
  16. 160
  17. 74
  18. input
  19. taking a photo
  20. a beep sound
  21. 34
  22. line 3
  23. line 3
  24. True
  25. typing your age
  26. 42
  27. 18
  28. False
  29. 50
  30. 13000
  31. adding up a bill
  32. line 3
  33. 120
  34. a pop-up message
  35. working out a tip
  36. 130
  37. line 3
  38. 79
  39. True
  40. False

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