← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. taking a photo
  3. True
  4. line 3
  5. a buzz (vibration)
  6. typing your age
  7. input
  8. sorting the scores
  9. typing your age
  10. False
  11. False
  12. True
  13. 4000
  14. 270
  15. line 3
  16. output
  17. True
  18. working out a tip
  19. False
  20. 51
  21. line 3
  22. working out a tip
  23. line 3
  24. 195
  25. taking a photo
  26. 50
  27. False
  28. processing
  29. a beep sound
  30. 11000
  31. a pop-up message
  32. a pop-up message
  33. 220
  34. line 3
  35. adding up a bill
  36. output
  37. 5000
  38. 60
  39. a result on screen
  40. 390

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