← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. line 3
  3. 150
  4. 450
  5. line 3
  6. speaking a command
  7. line 2
  8. line 3
  9. False
  10. a pop-up message
  11. 2000
  12. sorting the scores
  13. line 3
  14. 12
  15. speaking a command
  16. 400
  17. sorting the scores
  18. processing
  19. line 3
  20. taking a photo
  21. False
  22. processing
  23. input
  24. False
  25. a beep sound
  26. a buzz (vibration)
  27. 300
  28. 3000
  29. True
  30. output
  31. 57
  32. input
  33. 41
  34. 180
  35. a pop-up message
  36. line 3
  37. line 2
  38. a buzz (vibration)
  39. True
  40. line 2

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