← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. a pop-up message
  3. 400
  4. processing
  5. 110
  6. line 3
  7. True
  8. a result on screen
  9. False
  10. False
  11. 240
  12. True
  13. True
  14. 165
  15. True
  16. 9000
  17. 11000
  18. line 2
  19. processing
  20. typing your age
  21. 18
  22. line 2
  23. 60
  24. True
  25. 110
  26. 175
  27. 4000
  28. 64
  29. 53
  30. line 3
  31. 67
  32. line 3
  33. False
  34. taking a photo
  35. 5000
  36. 63
  37. line 3
  38. input
  39. 70
  40. line 3

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