← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. input
  3. line 2
  4. line 2
  5. 78
  6. speaking a command
  7. a buzz (vibration)
  8. line 3
  9. 550
  10. True
  11. 210
  12. output
  13. output
  14. 18
  15. typing your age
  16. working out a tip
  17. a pop-up message
  18. 225
  19. line 2
  20. 12000
  21. 15000
  22. line 3
  23. line 3
  24. False
  25. 14000
  26. True
  27. working out a tip
  28. a result on screen
  29. line 3
  30. 480
  31. line 2
  32. 2000
  33. 34
  34. sorting the scores
  35. line 3
  36. True
  37. 130
  38. False
  39. sorting the scores
  40. line 3

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