← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 2
  3. 280
  4. a result on screen
  5. False
  6. True
  7. 80
  8. input
  9. line 2
  10. processing
  11. 230
  12. typing your age
  13. input
  14. line 3
  15. a buzz (vibration)
  16. typing your age
  17. line 3
  18. 90
  19. 46
  20. 59
  21. 8000
  22. input
  23. True
  24. line 3
  25. a pop-up message
  26. sorting the scores
  27. 75
  28. True
  29. line 3
  30. 225
  31. output
  32. 60
  33. a beep sound
  34. True
  35. 340
  36. line 2
  37. working out a tip
  38. line 3
  39. False
  40. line 3

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