← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. True
  3. processing
  4. adding up a bill
  5. input
  6. False
  7. 400
  8. 120
  9. adding up a bill
  10. a beep sound
  11. line 2
  12. speaking a command
  13. a result on screen
  14. 13000
  15. 7000
  16. 460
  17. 11000
  18. 450
  19. 360
  20. True
  21. True
  22. False
  23. line 3
  24. input
  25. typing your age
  26. False
  27. 4000
  28. checking a password
  29. speaking a command
  30. 280
  31. output
  32. working out a tip
  33. line 3
  34. 375
  35. line 2
  36. False
  37. 430
  38. output
  39. tapping a button
  40. a buzz (vibration)

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