← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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