← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. line 3
  3. a beep sound
  4. input
  5. 190
  6. adding up a bill
  7. a pop-up message
  8. working out a tip
  9. False
  10. working out a tip
  11. False
  12. True
  13. input
  14. processing
  15. taking a photo
  16. tapping a button
  17. processing
  18. checking a password
  19. line 3
  20. adding up a bill
  21. a result on screen
  22. line 3
  23. False
  24. False
  25. 41
  26. line 3
  27. 540
  28. True
  29. 150
  30. 2000
  31. typing your age
  32. speaking a command
  33. False
  34. typing your age
  35. line 3
  36. 280
  37. 310
  38. True
  39. sorting the scores
  40. tapping a button

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