← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. checking a password
  3. processing
  4. a buzz (vibration)
  5. line 3
  6. True
  7. typing your age
  8. line 3
  9. a buzz (vibration)
  10. line 3
  11. sorting the scores
  12. speaking a command
  13. line 3
  14. False
  15. a result on screen
  16. True
  17. output
  18. 70
  19. a beep sound
  20. output
  21. 53
  22. output
  23. input
  24. a result on screen
  25. tapping a button
  26. False
  27. line 3
  28. 48
  29. line 2
  30. line 3
  31. a pop-up message
  32. 4000
  33. 255
  34. True
  35. 11000
  36. taking a photo
  37. 8000
  38. True
  39. 150
  40. 225

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