← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. False
  3. processing
  4. 21
  5. a beep sound
  6. 70
  7. working out a tip
  8. output
  9. adding up a bill
  10. 6000
  11. adding up a bill
  12. line 2
  13. line 3
  14. 4000
  15. speaking a command
  16. 530
  17. True
  18. line 2
  19. 180
  20. output
  21. line 3
  22. 100
  23. a result on screen
  24. line 3
  25. speaking a command
  26. line 2
  27. output
  28. False
  29. line 3
  30. a result on screen
  31. processing
  32. 190
  33. line 3
  34. 160
  35. False
  36. 2000
  37. 500
  38. working out a tip
  39. 70
  40. line 3

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