← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 440
  2. 210
  3. True
  4. 150
  5. working out a tip
  6. line 3
  7. adding up a bill
  8. 175
  9. 475
  10. checking a password
  11. True
  12. processing
  13. typing your age
  14. a buzz (vibration)
  15. 46
  16. 60
  17. input
  18. line 3
  19. output
  20. line 2
  21. 540
  22. input
  23. checking a password
  24. 240
  25. True
  26. processing
  27. sorting the scores
  28. line 3
  29. 61
  30. speaking a command
  31. False
  32. line 3
  33. False
  34. 9000
  35. line 3
  36. a pop-up message
  37. a result on screen
  38. 160
  39. typing your age
  40. input

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