← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. input
  3. 440
  4. 240
  5. False
  6. True
  7. adding up a bill
  8. line 3
  9. line 3
  10. line 2
  11. line 3
  12. False
  13. working out a tip
  14. True
  15. processing
  16. output
  17. sorting the scores
  18. a pop-up message
  19. 75
  20. output
  21. line 3
  22. False
  23. 10
  24. tapping a button
  25. 15
  26. 80
  27. 30
  28. 12000
  29. speaking a command
  30. 38
  31. True
  32. input
  33. 70
  34. 44
  35. line 3
  36. 390
  37. line 2
  38. 56
  39. typing your age
  40. 55

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