← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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