Computer Science
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.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, and R is not the correct explanation of A.
- A is true but R is false.
- 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.
Related Questions
Which of the following functions changes the position of file pointer and returns its new position?
- flush()
- tell()
- seek()
- offset()
Assertion(A): List is an immutable data type.
Reasoning(R): When an attempt is made to update the value of an immutable variable, the old variable is destroyed and a new variable is created by the same name in memory.
- Both A and R are true, and R is the correct explanation of A.
- Both A and R are true, and R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
(i) Expand the following terms: POP3, URL
(ii) Give one difference between XML and HTML.
(i) Define the term bandwidth with respect to networks.
(ii) How is http different from https ?