← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. line 3
  4. a buzz (vibration)
  5. line 3
  6. working out a tip
  7. adding up a bill
  8. True
  9. 325
  10. False
  11. a beep sound
  12. 270
  13. 80
  14. False
  15. 40
  16. line 3
  17. False
  18. line 2
  19. line 3
  20. a beep sound
  21. 165
  22. a result on screen
  23. input
  24. True
  25. False
  26. sorting the scores
  27. line 3
  28. True
  29. 190
  30. line 3
  31. 43
  32. a buzz (vibration)
  33. processing
  34. True
  35. True
  36. False
  37. 13000
  38. processing
  39. input
  40. output

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