← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. input
  3. line 3
  4. checking a password
  5. line 3
  6. output
  7. adding up a bill
  8. a buzz (vibration)
  9. True
  10. line 3
  11. line 3
  12. False
  13. line 3
  14. line 3
  15. False
  16. 8000
  17. 4000
  18. a beep sound
  19. line 3
  20. input
  21. output
  22. working out a tip
  23. processing
  24. working out a tip
  25. typing your age
  26. 590
  27. False
  28. True
  29. line 3
  30. sorting the scores
  31. a result on screen
  32. True
  33. output
  34. False
  35. True
  36. 360
  37. 290
  38. 7000
  39. 255
  40. 13000

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