← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. processing
  3. line 3
  4. tapping a button
  5. line 3
  6. False
  7. a buzz (vibration)
  8. 340
  9. line 3
  10. input
  11. sorting the scores
  12. line 3
  13. line 2
  14. typing your age
  15. line 2
  16. processing
  17. False
  18. 60
  19. 13000
  20. adding up a bill
  21. 300
  22. line 3
  23. line 3
  24. a result on screen
  25. True
  26. 150
  27. True
  28. False
  29. 3000
  30. 225
  31. a beep sound
  32. line 3
  33. line 3
  34. processing
  35. 11000
  36. line 3
  37. 21
  38. a result on screen
  39. input
  40. False

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