← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. tapping a button
  3. line 3
  4. taking a photo
  5. speaking a command
  6. a pop-up message
  7. typing your age
  8. line 3
  9. checking a password
  10. working out a tip
  11. input
  12. line 3
  13. line 3
  14. processing
  15. 320
  16. tapping a button
  17. False
  18. False
  19. 15000
  20. 40
  21. sorting the scores
  22. 67
  23. True
  24. taking a photo
  25. False
  26. line 3
  27. True
  28. False
  29. 580
  30. line 3
  31. input
  32. 23
  33. line 3
  34. 390
  35. 57
  36. True
  37. line 3
  38. a result on screen
  39. 90
  40. 6000

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