menu

Python Libraries and Modules

Python Libraries and Modules - Important Points


1.

Which library in Python is used for scientific computing?

A. NumPy

B. Pandas

C. Matplotlib

D. Scikit-learn

Discuss Work Space

Answer: option a

Explanation:

NumPy is a library used for scientific computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a large collection of mathematical functions to operate on these arrays.


2. Which module in Python is used for file input/output operations?

A. os

B. sys

C. io

D. shutil

Discuss Work Space

Answer: option a

Explanation:

The os module provides functions for file input/output operations in Python. It provides a way to interact with the operating system and access the file system, including functions for creating, reading, writing, and deleting files and directories.

3. Which library in Python is used for data visualization?

A. Matplotlib

B. NumPy

C. Pandas

D. Scipy

Discuss Work Space

Answer: option a

Explanation:

Matplotlib is a library used for data visualization in Python. It provides a wide range of functions for creating various types of plots, including line plots, scatter plots, bar charts, and histograms.

4. Which module in Python is used for regular expressions?

A. re

B. os

C. sys

D. datetime

Discuss Work Space

Answer: option a

Explanation:

The re module in Python is used for regular expressions. It provides functions for pattern matching and searching within strings, including support for searching and replacing text using regular expressions.

5. Which library in Python is used for machine learning?

A. Scikit-learn

B. NumPy

C. Pandas

D. Matplotlib

Discuss Work Space

Answer: option a

Explanation:

Scikit-learn is a library used for machine learning in Python. It provides a range of tools and algorithms for data preprocessing, feature selection, model selection, and model evaluation.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now