← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. speaking a command
  3. False
  4. processing
  5. processing
  6. a result on screen
  7. True
  8. 5000
  9. True
  10. 180
  11. line 3
  12. typing your age
  13. line 3
  14. output
  15. 10000
  16. typing your age
  17. False
  18. 72
  19. 15000
  20. line 3
  21. 3000
  22. line 2
  23. 25
  24. line 3
  25. processing
  26. 7000
  27. 28
  28. input
  29. input
  30. line 2
  31. False
  32. a result on screen
  33. 150
  34. line 2
  35. line 3
  36. 75
  37. 520
  38. True
  39. 330
  40. sorting the scores

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