← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 100
  2. 570
  3. line 3
  4. processing
  5. checking a password
  6. processing
  7. True
  8. False
  9. 150
  10. line 3
  11. typing your age
  12. typing your age
  13. 270
  14. line 3
  15. True
  16. 8000
  17. line 3
  18. True
  19. 4000
  20. 45
  21. 68
  22. adding up a bill
  23. line 3
  24. line 3
  25. adding up a bill
  26. line 3
  27. 3000
  28. 170
  29. line 3
  30. 80
  31. input
  32. 6000
  33. line 3
  34. input
  35. 330
  36. 200
  37. 11
  38. line 3
  39. False
  40. output

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