← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. output
  3. processing
  4. output
  5. line 3
  6. line 2
  7. True
  8. adding up a bill
  9. 12000
  10. line 3
  11. output
  12. input
  13. line 3
  14. 450
  15. False
  16. taking a photo
  17. working out a tip
  18. line 3
  19. True
  20. line 3
  21. input
  22. 5000
  23. line 3
  24. a beep sound
  25. typing your age
  26. 71
  27. 210
  28. 90
  29. True
  30. a result on screen
  31. line 3
  32. False
  33. speaking a command
  34. processing
  35. 15000
  36. 40
  37. False
  38. 14000
  39. line 3
  40. 60

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