← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. line 3
  3. line 2
  4. typing your age
  5. line 3
  6. 130
  7. line 3
  8. a result on screen
  9. processing
  10. input
  11. 4000
  12. processing
  13. 240
  14. 19
  15. 450
  16. line 3
  17. 90
  18. False
  19. speaking a command
  20. typing your age
  21. speaking a command
  22. 210
  23. 14000
  24. 9000
  25. 64
  26. True
  27. 16
  28. 510
  29. 12000
  30. line 3
  31. a pop-up message
  32. True
  33. 300
  34. working out a tip
  35. line 3
  36. True
  37. line 2
  38. input
  39. 15000
  40. output

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