← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. True
  3. a beep sound
  4. 80
  5. True
  6. 11000
  7. sorting the scores
  8. line 2
  9. 320
  10. processing
  11. 80
  12. True
  13. a buzz (vibration)
  14. 3000
  15. True
  16. taking a photo
  17. adding up a bill
  18. a beep sound
  19. False
  20. a result on screen
  21. False
  22. input
  23. True
  24. line 2
  25. input
  26. line 3
  27. line 2
  28. 59
  29. 125
  30. line 3
  31. output
  32. 310
  33. 240
  34. processing
  35. a pop-up message
  36. 530
  37. output
  38. line 3
  39. line 3
  40. True

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