← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. line 3
  3. input
  4. 160
  5. output
  6. output
  7. checking a password
  8. line 3
  9. sorting the scores
  10. line 3
  11. typing your age
  12. line 3
  13. output
  14. 330
  15. input
  16. True
  17. False
  18. False
  19. line 3
  20. True
  21. 250
  22. adding up a bill
  23. 56
  24. line 3
  25. line 3
  26. 29
  27. a beep sound
  28. processing
  29. line 3
  30. line 3
  31. line 3
  32. output
  33. working out a tip
  34. True
  35. checking a password
  36. processing
  37. 18
  38. 150
  39. False
  40. True

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