← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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