← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. line 3
  3. 40
  4. checking a password
  5. input
  6. a result on screen
  7. line 2
  8. line 3
  9. 225
  10. 340
  11. 100
  12. True
  13. 90
  14. 80
  15. a beep sound
  16. typing your age
  17. line 3
  18. processing
  19. line 3
  20. False
  21. checking a password
  22. line 2
  23. taking a photo
  24. speaking a command
  25. 470
  26. line 3
  27. a result on screen
  28. 8000
  29. adding up a bill
  30. processing
  31. False
  32. 360
  33. 570
  34. taking a photo
  35. tapping a button
  36. output
  37. False
  38. 2000
  39. line 3
  40. False

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