← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. line 2
  3. input
  4. speaking a command
  5. 160
  6. 68
  7. False
  8. working out a tip
  9. typing your age
  10. False
  11. processing
  12. 8000
  13. 190
  14. a result on screen
  15. 360
  16. False
  17. True
  18. line 2
  19. 120
  20. line 3
  21. line 3
  22. line 3
  23. False
  24. a buzz (vibration)
  25. False
  26. typing your age
  27. line 3
  28. 210
  29. checking a password
  30. 75
  31. a beep sound
  32. line 3
  33. line 3
  34. adding up a bill
  35. 350
  36. False
  37. 2000
  38. True
  39. working out a tip
  40. True

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