← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 69
  3. 150
  4. 42
  5. 150
  6. line 3
  7. line 3
  8. True
  9. 100
  10. False
  11. working out a tip
  12. 390
  13. 390
  14. 440
  15. input
  16. a buzz (vibration)
  17. line 3
  18. False
  19. 12000
  20. processing
  21. 350
  22. a pop-up message
  23. a pop-up message
  24. False
  25. 6000
  26. input
  27. 57
  28. a result on screen
  29. a result on screen
  30. 55
  31. line 2
  32. processing
  33. 29
  34. True
  35. a buzz (vibration)
  36. line 3
  37. line 3
  38. False
  39. line 3
  40. line 3

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