← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 2000
  2. 12000
  3. checking a password
  4. working out a tip
  5. line 3
  6. a pop-up message
  7. sorting the scores
  8. True
  9. line 3
  10. line 3
  11. line 3
  12. 210
  13. False
  14. sorting the scores
  15. False
  16. line 3
  17. output
  18. output
  19. line 3
  20. input
  21. typing your age
  22. line 3
  23. False
  24. 320
  25. a buzz (vibration)
  26. output
  27. taking a photo
  28. input
  29. True
  30. a result on screen
  31. 180
  32. a buzz (vibration)
  33. line 3
  34. line 2
  35. False
  36. 35
  37. line 3
  38. a pop-up message
  39. typing your age
  40. False

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