← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. line 3
  4. tapping a button
  5. a pop-up message
  6. typing your age
  7. 170
  8. input
  9. adding up a bill
  10. a pop-up message
  11. False
  12. processing
  13. output
  14. speaking a command
  15. line 3
  16. 5000
  17. 180
  18. 125
  19. speaking a command
  20. 15000
  21. 72
  22. processing
  23. 30
  24. processing
  25. checking a password
  26. True
  27. 285
  28. line 2
  29. line 2
  30. typing your age
  31. line 2
  32. 6000
  33. input
  34. False
  35. line 3
  36. working out a tip
  37. tapping a button
  38. a result on screen
  39. True
  40. True

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