← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 34
  2. line 3
  3. line 2
  4. 55
  5. 80
  6. line 3
  7. speaking a command
  8. a pop-up message
  9. adding up a bill
  10. sorting the scores
  11. working out a tip
  12. False
  13. a result on screen
  14. checking a password
  15. False
  16. processing
  17. line 3
  18. 490
  19. input
  20. a result on screen
  21. adding up a bill
  22. input
  23. 240
  24. True
  25. line 2
  26. taking a photo
  27. line 3
  28. False
  29. False
  30. line 3
  31. a pop-up message
  32. line 3
  33. line 3
  34. checking a password
  35. taking a photo
  36. a buzz (vibration)
  37. input
  38. False
  39. False
  40. a beep sound

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