← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. 170
  3. True
  4. True
  5. True
  6. line 3
  7. adding up a bill
  8. taking a photo
  9. False
  10. line 3
  11. speaking a command
  12. input
  13. tapping a button
  14. line 3
  15. typing your age
  16. 9000
  17. line 3
  18. output
  19. True
  20. 460
  21. input
  22. a buzz (vibration)
  23. True
  24. working out a tip
  25. 10000
  26. a result on screen
  27. processing
  28. checking a password
  29. 74
  30. 90
  31. adding up a bill
  32. line 3
  33. True
  34. False
  35. True
  36. checking a password
  37. line 3
  38. 76
  39. input
  40. sorting the scores

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