← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. working out a tip
  3. line 3
  4. typing your age
  5. a result on screen
  6. 10
  7. output
  8. input
  9. False
  10. 12000
  11. a buzz (vibration)
  12. output
  13. typing your age
  14. 4000
  15. 13000
  16. line 3
  17. False
  18. speaking a command
  19. 70
  20. tapping a button
  21. a result on screen
  22. 8000
  23. True
  24. line 3
  25. processing
  26. output
  27. 25
  28. 100
  29. False
  30. 51
  31. 2000
  32. 260
  33. 380
  34. line 3
  35. 110
  36. line 2
  37. output
  38. 28
  39. tapping a button
  40. 9000

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