← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 150
  3. True
  4. 450
  5. speaking a command
  6. taking a photo
  7. output
  8. a result on screen
  9. line 2
  10. a buzz (vibration)
  11. False
  12. line 2
  13. True
  14. 270
  15. 77
  16. False
  17. a pop-up message
  18. line 3
  19. False
  20. line 3
  21. 150
  22. line 3
  23. line 3
  24. processing
  25. 67
  26. True
  27. True
  28. line 3
  29. adding up a bill
  30. sorting the scores
  31. speaking a command
  32. True
  33. False
  34. output
  35. processing
  36. output
  37. line 3
  38. True
  39. typing your age
  40. typing your age

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