← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. speaking a command
  2. input
  3. False
  4. line 3
  5. output
  6. speaking a command
  7. True
  8. input
  9. line 3
  10. processing
  11. 70
  12. checking a password
  13. 120
  14. taking a photo
  15. adding up a bill
  16. processing
  17. 105
  18. True
  19. a beep sound
  20. 330
  21. False
  22. line 3
  23. True
  24. 4000
  25. line 3
  26. False
  27. a pop-up message
  28. tapping a button
  29. input
  30. 45
  31. line 3
  32. line 3
  33. 150
  34. typing your age
  35. 54
  36. 200
  37. 8000
  38. line 3
  39. line 3
  40. sorting the scores

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