← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. input
  3. False
  4. line 3
  5. output
  6. 8000
  7. 10000
  8. False
  9. input
  10. a pop-up message
  11. 510
  12. a result on screen
  13. 340
  14. False
  15. line 3
  16. adding up a bill
  17. True
  18. output
  19. processing
  20. checking a password
  21. taking a photo
  22. False
  23. False
  24. working out a tip
  25. 130
  26. taking a photo
  27. 15000
  28. True
  29. 120
  30. typing your age
  31. processing
  32. speaking a command
  33. line 3
  34. a buzz (vibration)
  35. 180
  36. 260
  37. 14000
  38. processing
  39. False
  40. line 3

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