← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. True
  3. taking a photo
  4. working out a tip
  5. True
  6. 180
  7. 175
  8. 220
  9. False
  10. True
  11. line 3
  12. 3000
  13. input
  14. a beep sound
  15. line 3
  16. 80
  17. 100
  18. line 2
  19. 480
  20. processing
  21. 73
  22. tapping a button
  23. a buzz (vibration)
  24. line 3
  25. working out a tip
  26. input
  27. 61
  28. 4000
  29. a result on screen
  30. line 3
  31. False
  32. a result on screen
  33. 420
  34. 200
  35. sorting the scores
  36. checking a password
  37. output
  38. typing your age
  39. line 3
  40. output

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