← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 64
  3. True
  4. False
  5. typing your age
  6. working out a tip
  7. processing
  8. True
  9. 14000
  10. False
  11. line 3
  12. 410
  13. 14
  14. 360
  15. input
  16. line 3
  17. output
  18. 190
  19. False
  20. 15000
  21. a buzz (vibration)
  22. output
  23. checking a password
  24. checking a password
  25. taking a photo
  26. typing your age
  27. sorting the scores
  28. 280
  29. line 3
  30. True
  31. 11000
  32. speaking a command
  33. working out a tip
  34. 370
  35. False
  36. 390
  37. line 3
  38. speaking a command
  39. 140
  40. False

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