← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 150
  2. 275
  3. True
  4. line 3
  5. processing
  6. sorting the scores
  7. working out a tip
  8. typing your age
  9. line 3
  10. 450
  11. typing your age
  12. 120
  13. speaking a command
  14. input
  15. line 2
  16. 410
  17. adding up a bill
  18. a result on screen
  19. False
  20. 6000
  21. 60
  22. 210
  23. False
  24. 15000
  25. 5000
  26. output
  27. a beep sound
  28. output
  29. 50
  30. line 3
  31. processing
  32. input
  33. False
  34. line 3
  35. 16
  36. True
  37. output
  38. line 3
  39. checking a password
  40. True

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