← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. input
  3. line 3
  4. 12000
  5. 210
  6. True
  7. True
  8. 77
  9. typing your age
  10. a buzz (vibration)
  11. True
  12. line 3
  13. False
  14. 230
  15. True
  16. line 3
  17. a pop-up message
  18. 54
  19. a result on screen
  20. tapping a button
  21. 250
  22. False
  23. 325
  24. 510
  25. speaking a command
  26. 275
  27. line 3
  28. working out a tip
  29. 400
  30. a pop-up message
  31. line 3
  32. line 3
  33. 34
  34. input
  35. False
  36. 225
  37. 23
  38. 280
  39. 130
  40. adding up a bill

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