← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 61
  3. False
  4. line 3
  5. output
  6. 6000
  7. checking a password
  8. False
  9. 140
  10. output
  11. 100
  12. line 2
  13. 15000
  14. 8000
  15. 510
  16. typing your age
  17. speaking a command
  18. True
  19. True
  20. tapping a button
  21. line 3
  22. 45
  23. False
  24. working out a tip
  25. line 2
  26. line 3
  27. input
  28. output
  29. line 2
  30. a result on screen
  31. False
  32. False
  33. 150
  34. False
  35. working out a tip
  36. 14000
  37. tapping a button
  38. input
  39. taking a photo
  40. a beep sound

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