← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 11000
  2. 420
  3. 15
  4. input
  5. 17
  6. checking a password
  7. 38
  8. True
  9. input
  10. a pop-up message
  11. 330
  12. a result on screen
  13. tapping a button
  14. sorting the scores
  15. False
  16. line 3
  17. a buzz (vibration)
  18. a pop-up message
  19. 210
  20. 61
  21. processing
  22. taking a photo
  23. 56
  24. line 3
  25. False
  26. 20
  27. True
  28. line 2
  29. input
  30. tapping a button
  31. 63
  32. a buzz (vibration)
  33. taking a photo
  34. line 2
  35. True
  36. 280
  37. 40
  38. False
  39. line 3
  40. typing your age

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