← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 27
  2. checking a password
  3. input
  4. a beep sound
  5. 67
  6. line 3
  7. 170
  8. line 3
  9. False
  10. line 3
  11. input
  12. True
  13. False
  14. adding up a bill
  15. line 3
  16. line 3
  17. line 2
  18. processing
  19. line 3
  20. output
  21. line 3
  22. 220
  23. False
  24. line 3
  25. output
  26. speaking a command
  27. a beep sound
  28. False
  29. typing your age
  30. line 3
  31. line 3
  32. 15
  33. checking a password
  34. line 2
  35. True
  36. processing
  37. False
  38. True
  39. 76
  40. True

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