← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. True
  3. output
  4. 37
  5. True
  6. output
  7. a beep sound
  8. 20
  9. 8000
  10. processing
  11. True
  12. False
  13. 30
  14. line 3
  15. speaking a command
  16. processing
  17. False
  18. speaking a command
  19. 39
  20. taking a photo
  21. taking a photo
  22. input
  23. input
  24. processing
  25. a result on screen
  26. working out a tip
  27. 22
  28. output
  29. a pop-up message
  30. False
  31. sorting the scores
  32. line 3
  33. 150
  34. line 3
  35. line 3
  36. False
  37. a pop-up message
  38. 330
  39. 500
  40. line 3

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