← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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