← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 200
  3. a buzz (vibration)
  4. False
  5. line 3
  6. line 3
  7. 120
  8. processing
  9. a pop-up message
  10. input
  11. False
  12. a result on screen
  13. input
  14. line 3
  15. line 3
  16. typing your age
  17. output
  18. working out a tip
  19. line 3
  20. input
  21. speaking a command
  22. True
  23. line 3
  24. True
  25. sorting the scores
  26. adding up a bill
  27. 240
  28. tapping a button
  29. output
  30. taking a photo
  31. 250
  32. line 3
  33. adding up a bill
  34. line 3
  35. processing
  36. 80
  37. processing
  38. line 3
  39. line 3
  40. 180

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