← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 32
  3. False
  4. 6000
  5. True
  6. False
  7. False
  8. working out a tip
  9. line 3
  10. line 3
  11. adding up a bill
  12. True
  13. True
  14. True
  15. False
  16. 30
  17. line 3
  18. working out a tip
  19. processing
  20. line 3
  21. 170
  22. processing
  23. processing
  24. line 3
  25. 200
  26. 25
  27. True
  28. processing
  29. input
  30. taking a photo
  31. output
  32. 140
  33. 55
  34. line 3
  35. speaking a command
  36. 64
  37. line 2
  38. True
  39. line 3
  40. adding up a bill

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