Python Programming - Standard Libraries
Exercise : Standard Libraries - General Questions
- Standard Libraries - General Questions
26.
What does the
statistics.median()
function do?
Answer: Option
Explanation:
The
statistics.median()
function in Python is used to calculate the median of a list of numbers.
27.
Which module in Python provides support for working with XML, including parsing and creating XML documents?
Answer: Option
Explanation:
The
xml.etree.ElementTree
module in Python provides support for working with XML, including parsing and creating XML documents.
28.
Which module in Python is used for working with compressed archives, such as tar files?
Answer: Option
Explanation:
The
tarfile
module in Python provides functionality for working with tar archives.
29.
What is the purpose of the
asyncio
module?
Answer: Option
Explanation:
The
asyncio
module in Python provides support for writing asynchronous code, particularly for asynchronous I/O operations.
30.
Which method is used to convert a string to a lowercase version?
Answer: Option
Explanation:
The
lower()
method is used to convert a string to its lowercase version in Python.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers