← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 150
  3. True
  4. 30
  5. tapping a button
  6. True
  7. 180
  8. line 3
  9. adding up a bill
  10. a buzz (vibration)
  11. 140
  12. line 3
  13. a pop-up message
  14. 65
  15. a buzz (vibration)
  16. line 3
  17. taking a photo
  18. True
  19. 170
  20. 3000
  21. sorting the scores
  22. False
  23. line 2
  24. processing
  25. line 3
  26. checking a password
  27. taking a photo
  28. a result on screen
  29. 170
  30. False
  31. input
  32. False
  33. 450
  34. processing
  35. True
  36. line 3
  37. line 3
  38. line 3
  39. input
  40. line 3

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