menu

Python for Data Science and Machine Learning

Python for Data Science and Machine Learning - Important Points


6. Which of the following is used to create arrays in NumPy?

A. list

B. tuple

C. ndarray

D. set

Discuss Work Space

Answer: option c

Explanation:

NumPy's main object is the homogeneous multidimensional array. It is a table of elements (usually numbers), all of the same type, indexed by a tuple of positive integers.

7. What is the difference between a list and an array in Python?

A. Lists can only contain one data type, while arrays can contain multiple data types.

B. Arrays can be resized after creation, while lists cannot.

C. Lists can be indexed using negative numbers, while arrays cannot.

D. Arrays are optimized for numerical operations, while lists are not.

Discuss Work Space

Answer: option d

Explanation:

Arrays in Python are optimized for numerical operations, while lists are not.

8. Which of the following is a supervised learning algorithm?

A. K-means clustering

B. Random forest

C. Gradient descent

D. None of the above

Discuss Work Space

Answer: option b

Explanation:

Random forest is a supervised learning algorithm, meaning that it requires labeled data to train the model.

9. Which of the following is an unsupervised learning algorithm?

A. K-means clustering

B. Naive Bayes

C. Linear regression

D. Decision tree

Discuss Work Space

Answer: option a

Explanation:

K-means clustering is an unsupervised learning algorithm, meaning that it does not require labeled data to train the model.

10. Which of the following is not a step in the machine learning process?

A. Data cleaning and preprocessing

B. Model selection and training

C. Hyperparameter tuning

D. Feature engineering

Discuss Work Space

Answer: option d

Explanation:

Feature engineering is a step in the machine learning process, involving selecting and transforming variables or features to improve model performance.


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