← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 285
  2. typing your age
  3. taking a photo
  4. output
  5. 20
  6. processing
  7. True
  8. 9000
  9. 4000
  10. False
  11. 5000
  12. input
  13. False
  14. a result on screen
  15. output
  16. sorting the scores
  17. a pop-up message
  18. line 3
  19. True
  20. 200
  21. True
  22. 100
  23. a buzz (vibration)
  24. line 3
  25. a pop-up message
  26. taking a photo
  27. line 3
  28. line 3
  29. line 3
  30. line 2
  31. line 3
  32. adding up a bill
  33. line 3
  34. 32
  35. False
  36. line 3
  37. typing your age
  38. 28
  39. processing
  40. speaking a command

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