Which of the following statements about Python lists is true?
Lists are defined using square brackets []
Which SQL clause is used to filter the result set based on a condition applied to an aggregate
function like COUNT?
HAVING
What function in R is used to get the structure of a dataset?
str()
Which algorithm is best suited for a classification task where the data is non-linearly separable?
Support Vector Machine
What will be the output of this code?
True (Assuming you're referring to some conditional code like bool([]))
Which algorithm is commonly used for clustering tasks?
K-Means
What is the main purpose of data normalization?
To scale data to a common range
Which of the following libraries is mainly used for data manipulation and analysis in Python?
Pandas
What does TF-IDF stand for in text mining?
Term Frequency - Inverse Document Frequency
Which metric is commonly used to evaluate the performance of a classification model?
Accuracy
Which regularization technique can lead to feature selection by shrinking some coefficients to
zero?
L1 Regularization
You have a dataset with 1% positive class and 99% negative class. Which metric is least helpful?
Accuracy
Which technique is most appropriate for time-series cross-validation?
TimeSeriesSplit
What is the primary reason to use PCA before training a machine learning model?
Reduce dimensionality and multicollinearity
Which assumption is violated when using standard linear regression on a time-series dataset?
Independence of observations
You want to calculate the average salary per department from this DataFrame: Which command
would you use?
[Link]('department').[Link]()
Which of the following replaces all NaN values in a DataFrame with 0?
[Link](0)
What is the result of [Link]([2, 4, 6, 8])?
5
What is the output shape of [Link]((3, 2))?
(3, 2)
What does [Link](3) do?
Returns the first 3 rows of the DataFrame