← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 410
  2. 10000
  3. speaking a command
  4. line 2
  5. False
  6. line 3
  7. 13
  8. line 3
  9. 12000
  10. typing your age
  11. line 3
  12. working out a tip
  13. a buzz (vibration)
  14. False
  15. False
  16. input
  17. taking a photo
  18. 300
  19. processing
  20. 7000
  21. False
  22. 120
  23. a result on screen
  24. False
  25. 73
  26. adding up a bill
  27. False
  28. output
  29. typing your age
  30. line 3
  31. input
  32. speaking a command
  33. line 3
  34. a result on screen
  35. checking a password
  36. False
  37. True
  38. line 3
  39. 60
  40. True

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