← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. working out a tip
  3. line 2
  4. input
  5. False
  6. output
  7. input
  8. 120
  9. line 3
  10. processing
  11. 6000
  12. 100
  13. line 3
  14. line 3
  15. 140
  16. line 3
  17. 30
  18. output
  19. speaking a command
  20. line 3
  21. typing your age
  22. 14
  23. typing your age
  24. input
  25. 13000
  26. 320
  27. 50
  28. 61
  29. line 3
  30. True
  31. line 3
  32. True
  33. speaking a command
  34. a buzz (vibration)
  35. 9000
  36. True
  37. line 2
  38. 175
  39. a buzz (vibration)
  40. a result on screen

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