CBSE Class 12 Computer Science Question 18 of 42

Solved 2024 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 18

Back to all questions
18
Question

Question 18

Assertion(A): Python Standard Library consists of various modules.

Reasoning(R): A function in a module is used to simplify the code and avoids repetition.

  1. Both A and R are true, and R is the correct explanation of A.
  2. Both A and R are true, and R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.

Reason — The Python Standard Library is a collection of modules and packages that provide a wide range of functionalities. A function in a module helps to organize code, simplify it, and avoid repetition which makes programming more efficient.