← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. output
  3. input
  4. tapping a button
  5. line 3
  6. processing
  7. line 3
  8. line 3
  9. speaking a command
  10. a result on screen
  11. working out a tip
  12. 5000
  13. line 3
  14. line 3
  15. True
  16. typing your age
  17. a result on screen
  18. input
  19. 180
  20. 360
  21. line 3
  22. input
  23. sorting the scores
  24. 4000
  25. False
  26. 50
  27. speaking a command
  28. 45
  29. True
  30. a beep sound
  31. False
  32. 125
  33. a beep sound
  34. 70
  35. line 3
  36. processing
  37. 200
  38. 6000
  39. line 3
  40. line 3

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