← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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