← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. processing
  4. checking a password
  5. line 3
  6. True
  7. line 2
  8. 13000
  9. 190
  10. False
  11. adding up a bill
  12. input
  13. 30
  14. line 2
  15. False
  16. speaking a command
  17. line 3
  18. 180
  19. 15000
  20. line 3
  21. line 2
  22. a result on screen
  23. processing
  24. 10000
  25. output
  26. a beep sound
  27. typing your age
  28. processing
  29. a beep sound
  30. False
  31. 500
  32. line 3
  33. processing
  34. 11000
  35. False
  36. 8000
  37. a pop-up message
  38. output
  39. 100
  40. 38

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