← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. line 2
  3. checking a password
  4. 425
  5. 8000
  6. output
  7. processing
  8. line 3
  9. 570
  10. output
  11. True
  12. False
  13. working out a tip
  14. 30
  15. line 3
  16. 30
  17. input
  18. False
  19. True
  20. line 2
  21. input
  22. line 3
  23. line 3
  24. input
  25. typing your age
  26. True
  27. False
  28. 11000
  29. taking a photo
  30. False
  31. typing your age
  32. processing
  33. 440
  34. 220
  35. 100
  36. sorting the scores
  37. processing
  38. 3000
  39. line 3
  40. line 3

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