← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. working out a tip
  3. 225
  4. input
  5. typing your age
  6. 160
  7. 60
  8. output
  9. a result on screen
  10. True
  11. a beep sound
  12. line 3
  13. line 3
  14. 490
  15. line 2
  16. line 3
  17. 570
  18. True
  19. adding up a bill
  20. line 3
  21. 2000
  22. 42
  23. speaking a command
  24. a buzz (vibration)
  25. 240
  26. line 3
  27. a buzz (vibration)
  28. False
  29. processing
  30. tapping a button
  31. True
  32. True
  33. 6000
  34. processing
  35. line 3
  36. 31
  37. 330
  38. taking a photo
  39. False
  40. line 3

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