← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. input
  3. 36
  4. working out a tip
  5. line 2
  6. 125
  7. processing
  8. 180
  9. sorting the scores
  10. 13000
  11. line 3
  12. output
  13. 210
  14. tapping a button
  15. a beep sound
  16. False
  17. False
  18. input
  19. line 3
  20. False
  21. True
  22. checking a password
  23. False
  24. speaking a command
  25. line 3
  26. tapping a button
  27. adding up a bill
  28. line 3
  29. 450
  30. 4000
  31. 2000
  32. taking a photo
  33. 40
  34. line 3
  35. 300
  36. False
  37. 340
  38. False
  39. input
  40. a buzz (vibration)

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