← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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