← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. speaking a command
  3. line 3
  4. 2000
  5. working out a tip
  6. output
  7. 275
  8. 7000
  9. line 3
  10. input
  11. 73
  12. typing your age
  13. 100
  14. adding up a bill
  15. 340
  16. taking a photo
  17. line 3
  18. line 3
  19. line 3
  20. a beep sound
  21. True
  22. line 2
  23. line 2
  24. line 3
  25. 75
  26. line 3
  27. 250
  28. a pop-up message
  29. 10000
  30. checking a password
  31. sorting the scores
  32. line 3
  33. 390
  34. adding up a bill
  35. line 3
  36. input
  37. input
  38. output
  39. typing your age
  40. True

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