← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 11
  3. taking a photo
  4. 4000
  5. adding up a bill
  6. line 2
  7. 5000
  8. input
  9. output
  10. input
  11. True
  12. input
  13. 120
  14. line 3
  15. 66
  16. 300
  17. line 2
  18. 500
  19. a pop-up message
  20. a buzz (vibration)
  21. 480
  22. False
  23. 250
  24. 2000
  25. 40
  26. line 2
  27. 41
  28. input
  29. line 3
  30. line 3
  31. 140
  32. line 3
  33. True
  34. output
  35. adding up a bill
  36. 61
  37. taking a photo
  38. checking a password
  39. 38
  40. 300

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