← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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