← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 22
  3. True
  4. True
  5. output
  6. 25
  7. output
  8. 260
  9. taking a photo
  10. tapping a button
  11. 120
  12. working out a tip
  13. True
  14. 30
  15. 110
  16. False
  17. input
  18. 25
  19. 400
  20. False
  21. input
  22. a result on screen
  23. 170
  24. speaking a command
  25. line 2
  26. False
  27. line 3
  28. a buzz (vibration)
  29. True
  30. 15000
  31. typing your age
  32. line 3
  33. 7000
  34. adding up a bill
  35. False
  36. sorting the scores
  37. 13000
  38. working out a tip
  39. 5000
  40. line 3

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