← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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