← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. typing your age
  3. line 2
  4. line 2
  5. a pop-up message
  6. input
  7. True
  8. output
  9. processing
  10. line 3
  11. line 3
  12. taking a photo
  13. a beep sound
  14. 350
  15. 100
  16. 90
  17. True
  18. line 3
  19. 50
  20. line 2
  21. 420
  22. 45
  23. working out a tip
  24. False
  25. True
  26. output
  27. False
  28. False
  29. a result on screen
  30. a result on screen
  31. 255
  32. input
  33. tapping a button
  34. 130
  35. True
  36. line 2
  37. line 2
  38. False
  39. line 3
  40. checking a password

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