← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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