← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. taking a photo
  3. a pop-up message
  4. typing your age
  5. typing your age
  6. sorting the scores
  7. a buzz (vibration)
  8. sorting the scores
  9. line 2
  10. line 3
  11. checking a password
  12. False
  13. output
  14. tapping a button
  15. 8000
  16. a result on screen
  17. 300
  18. line 3
  19. 240
  20. line 3
  21. True
  22. checking a password
  23. output
  24. True
  25. a result on screen
  26. False
  27. a beep sound
  28. speaking a command
  29. 90
  30. a beep sound
  31. False
  32. adding up a bill
  33. True
  34. 90
  35. False
  36. input
  37. 220
  38. 50
  39. tapping a button
  40. 42

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