← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. typing your age
  3. 120
  4. output
  5. working out a tip
  6. input
  7. 14000
  8. line 3
  9. line 3
  10. a beep sound
  11. a beep sound
  12. 13000
  13. True
  14. 6000
  15. line 3
  16. line 3
  17. line 2
  18. tapping a button
  19. a buzz (vibration)
  20. input
  21. line 3
  22. output
  23. 140
  24. True
  25. input
  26. 150
  27. line 3
  28. 30
  29. processing
  30. checking a password
  31. line 3
  32. 80
  33. 120
  34. line 3
  35. False
  36. 12000
  37. a pop-up message
  38. False
  39. False
  40. typing your age

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