← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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