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
View Answer Discuss Work SpaceAnswer: option c
Explanation:
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.
View Answer Discuss Work SpaceAnswer: option d
Explanation:
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
View Answer Discuss Work SpaceAnswer: option b
Explanation:
9. | Which of the following is an unsupervised learning algorithm? |
---|
A. K-means clustering
B. Naive Bayes
C. Linear regression
D. Decision tree
View Answer Discuss Work SpaceAnswer: option a
Explanation:
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
View Answer Discuss Work SpaceAnswer: option d
Explanation: