← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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