← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 2
  3. True
  4. 150
  5. 28
  6. 80
  7. True
  8. speaking a command
  9. 500
  10. 14000
  11. input
  12. 11000
  13. input
  14. speaking a command
  15. processing
  16. line 3
  17. line 2
  18. line 3
  19. line 2
  20. 120
  21. line 3
  22. True
  23. False
  24. tapping a button
  25. processing
  26. processing
  27. 67
  28. sorting the scores
  29. a pop-up message
  30. 410
  31. checking a password
  32. a result on screen
  33. False
  34. input
  35. line 3
  36. True
  37. line 3
  38. output
  39. typing your age
  40. checking a password

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