← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. True
  3. taking a photo
  4. 6000
  5. input
  6. line 3
  7. a beep sound
  8. taking a photo
  9. a buzz (vibration)
  10. 34
  11. working out a tip
  12. line 3
  13. 12
  14. line 3
  15. 52
  16. processing
  17. False
  18. typing your age
  19. 40
  20. 300
  21. 260
  22. line 3
  23. output
  24. False
  25. processing
  26. output
  27. False
  28. False
  29. line 3
  30. a pop-up message
  31. adding up a bill
  32. 26
  33. working out a tip
  34. True
  35. line 3
  36. 2000
  37. 230
  38. 72
  39. 180
  40. a result on screen

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