← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. line 3
  3. 28
  4. line 3
  5. line 3
  6. False
  7. 260
  8. a beep sound
  9. False
  10. 20
  11. False
  12. line 3
  13. processing
  14. working out a tip
  15. False
  16. False
  17. a beep sound
  18. input
  19. 5000
  20. line 3
  21. tapping a button
  22. line 2
  23. line 3
  24. output
  25. 285
  26. 2000
  27. typing your age
  28. a pop-up message
  29. line 3
  30. False
  31. 240
  32. output
  33. False
  34. adding up a bill
  35. input
  36. True
  37. line 3
  38. False
  39. processing
  40. input

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