← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 440
  3. processing
  4. input
  5. 45
  6. output
  7. False
  8. 35
  9. input
  10. sorting the scores
  11. line 3
  12. input
  13. False
  14. adding up a bill
  15. False
  16. line 3
  17. a pop-up message
  18. False
  19. typing your age
  20. 430
  21. 13000
  22. 120
  23. taking a photo
  24. adding up a bill
  25. line 2
  26. processing
  27. 11
  28. False
  29. True
  30. True
  31. line 3
  32. 270
  33. True
  34. 220
  35. True
  36. 43
  37. line 3
  38. line 3
  39. 40
  40. 270

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