← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. output
  3. 23
  4. typing your age
  5. line 3
  6. 210
  7. 80
  8. line 3
  9. a result on screen
  10. True
  11. 10000
  12. line 2
  13. input
  14. False
  15. 360
  16. processing
  17. 150
  18. a buzz (vibration)
  19. line 3
  20. 35
  21. True
  22. 420
  23. input
  24. working out a tip
  25. True
  26. a beep sound
  27. adding up a bill
  28. line 3
  29. checking a password
  30. line 3
  31. line 2
  32. processing
  33. line 2
  34. adding up a bill
  35. 34
  36. a buzz (vibration)
  37. processing
  38. 50
  39. tapping a button
  40. 570

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