← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. a beep sound
  3. False
  4. line 3
  5. a pop-up message
  6. 78
  7. False
  8. False
  9. 79
  10. True
  11. input
  12. 120
  13. a result on screen
  14. 150
  15. line 3
  16. 10000
  17. processing
  18. True
  19. 77
  20. output
  21. line 3
  22. typing your age
  23. a buzz (vibration)
  24. line 3
  25. 2000
  26. a result on screen
  27. True
  28. typing your age
  29. line 3
  30. False
  31. False
  32. 6000
  33. checking a password
  34. tapping a button
  35. line 3
  36. False
  37. speaking a command
  38. adding up a bill
  39. sorting the scores
  40. 170

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