← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 74
  2. taking a photo
  3. False
  4. a pop-up message
  5. 360
  6. line 3
  7. speaking a command
  8. line 3
  9. a result on screen
  10. 12000
  11. sorting the scores
  12. 180
  13. line 2
  14. typing your age
  15. line 3
  16. input
  17. 320
  18. True
  19. line 3
  20. False
  21. False
  22. processing
  23. 20
  24. False
  25. line 3
  26. line 3
  27. 330
  28. True
  29. 4000
  30. 6000
  31. False
  32. processing
  33. 200
  34. line 3
  35. False
  36. line 2
  37. 13
  38. working out a tip
  39. True
  40. 3000

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