← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. sorting the scores
  3. line 3
  4. typing your age
  5. line 3
  6. True
  7. line 3
  8. False
  9. input
  10. True
  11. processing
  12. processing
  13. line 3
  14. line 3
  15. False
  16. typing your age
  17. True
  18. line 3
  19. line 3
  20. a beep sound
  21. input
  22. line 2
  23. checking a password
  24. a beep sound
  25. output
  26. checking a password
  27. processing
  28. 12000
  29. 120
  30. line 3
  31. 230
  32. line 3
  33. speaking a command
  34. False
  35. 23
  36. True
  37. output
  38. a result on screen
  39. 50
  40. False

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