← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. typing your age
  3. 150
  4. output
  5. 2000
  6. line 3
  7. line 2
  8. adding up a bill
  9. tapping a button
  10. speaking a command
  11. taking a photo
  12. tapping a button
  13. False
  14. 240
  15. line 3
  16. True
  17. 18
  18. line 3
  19. line 3
  20. processing
  21. output
  22. False
  23. line 2
  24. line 3
  25. speaking a command
  26. output
  27. False
  28. False
  29. a result on screen
  30. line 2
  31. line 3
  32. True
  33. 40
  34. True
  35. processing
  36. False
  37. False
  38. 125
  39. line 3
  40. line 3

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