← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. taking a photo
  3. line 2
  4. line 3
  5. line 3
  6. a beep sound
  7. a pop-up message
  8. typing your age
  9. line 3
  10. True
  11. 6000
  12. a buzz (vibration)
  13. 21
  14. False
  15. 560
  16. checking a password
  17. line 3
  18. False
  19. True
  20. output
  21. a buzz (vibration)
  22. working out a tip
  23. tapping a button
  24. False
  25. 25
  26. 475
  27. processing
  28. 170
  29. a beep sound
  30. speaking a command
  31. line 3
  32. False
  33. processing
  34. 50
  35. 300
  36. 180
  37. 80
  38. sorting the scores
  39. True
  40. True

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