← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 21
  2. 2000
  3. input
  4. 175
  5. a result on screen
  6. processing
  7. a beep sound
  8. input
  9. typing your age
  10. line 3
  11. processing
  12. 470
  13. tapping a button
  14. False
  15. output
  16. line 3
  17. output
  18. sorting the scores
  19. 120
  20. checking a password
  21. line 2
  22. 300
  23. 58
  24. adding up a bill
  25. output
  26. line 3
  27. 14
  28. line 3
  29. 14000
  30. output
  31. line 3
  32. True
  33. False
  34. 50
  35. True
  36. speaking a command
  37. working out a tip
  38. False
  39. False
  40. False

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