← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. processing
  3. output
  4. False
  5. True
  6. sorting the scores
  7. 240
  8. 480
  9. a pop-up message
  10. input
  11. typing your age
  12. 9000
  13. speaking a command
  14. line 2
  15. False
  16. line 2
  17. False
  18. a pop-up message
  19. speaking a command
  20. 10
  21. output
  22. output
  23. True
  24. line 3
  25. 2000
  26. 100
  27. processing
  28. line 3
  29. line 3
  30. line 3
  31. typing your age
  32. 490
  33. a result on screen
  34. processing
  35. sorting the scores
  36. False
  37. line 3
  38. False
  39. a beep sound
  40. True

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