Data Science · Pandas What does df.isnull().sum() report? A Duplicate rows in each column B Bytes of memory per column C Missing counts for each column Correct answer D Total entries in each column MCQSEXAM Show answer Read explanation
Data Science · Pandas What information does df.shape provide? A The memory used in bytes B The dtype of every column C The count of non-null entries D The number of rows and columns Correct answer MCQSEXAM Show answer Read explanation
Data Science · Pandas What does df.dropna() do with its default arguments? A Drops columns holding any missing value B Fills every missing value with zero C Drops repeated index entries D Drops rows holding any missing value Correct answer MCQSEXAM Show answer Read explanation
Data Science · Pandas s1 has index [1, 2, 3] and s2 has index [2, 3, 4]. What is the result of s1 + s2? A A ValueError, because the indexes are not identical B A Series indexed 1 to 4, with zeros at 1 and 4 C A Series indexed 1 to 4, with NaN at 1 and 4 Correct answer D A Series of length 3, added element-wise by position MCQSEXAM Show answer Read explanation
Data Science · Pandas How do loc and iloc differ in pandas? A loc works only on Series objects B iloc works only on numeric columns C loc uses labels; iloc uses positions Correct answer D loc uses positions; iloc uses labels MCQSEXAM Show answer Read explanation
Data Science · Pandas What does df.head() return when called without arguments? A The first five rows Correct answer B The last five rows C Five randomly chosen rows D The five largest values MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis A CASE expression in SQL is used to: A sort rows by a chosen column B return different values based on conditions Correct answer C create a new table inside the database schema D join two tables on a common column MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis In SQL, a CTE is introduced with which keyword? A WITH Correct answer B LET C TEMP D AS MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis Compared with UNION, UNION ALL: A removes duplicate rows B sorts the result C joins tables horizontally D keeps duplicate rows Correct answer MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis The window function ROW_NUMBER() OVER (...) is used to: A count the distinct values appearing in a column B rank ties with equal numbers as equal C sum a numeric column across all rows D assign a sequential number to rows within a partition Correct answer MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis Which SQL clause sorts the result of a query? A SORT BY B ARRANGE BY C ORDER BY Correct answer D GROUP BY MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis The SQL function COUNT(*) returns: A the largest value in a column B the number of rows in the result Correct answer C the sum of a numeric column D the number of distinct values MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis A LEFT JOIN returns: A only the matching rows from both tables B all rows of the right table only C all rows of the left table plus matches from the right Correct answer D the union of both tables with no duplicates kept MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis An INNER JOIN returns: A only rows present in the right-hand table B all rows of the left table only C only rows with matching values in both tables Correct answer D all rows of both tables combined together MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis In SQL, the HAVING clause is used to: A rename columns B filter groups after aggregation Correct answer C filter individual rows before grouping D sort the result set MCQSEXAM Show answer Read explanation
Data Science · SQL for Data Analysis In SQL, the GROUP BY clause is used to: A filter individual rows by a condition B sort the result set in ascending order C aggregate rows that share a value into groups Correct answer D join two tables on a common key MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn OneHotEncoder is used to: A normalise numeric variables to a fixed range B remove duplicate rows from the input dataset C split the dataset into separate training and test subsets D convert categorical variables into binary indicator columns Correct answer MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn A scikit-learn Pipeline is useful because it: A plots learning curves after the training run completes B chains preprocessing steps and a final estimator as one object Correct answer C automatically tunes every hyperparameter in the search space D stores the dataset in memory for repeated reuse later MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn GridSearchCV is used to: A scale numeric features to a common range between zero and one B impute missing values in the dataset carefully C reduce the number of columns in the frame D search over hyperparameter combinations with cross-validation Correct answer MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn The KMeans algorithm in scikit-learn is used for: A dimensionality reduction B unsupervised clustering Correct answer C supervised classification D regression MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn Recall (sensitivity) is calculated as: A (TP + TN) / total B TP / (TP + FN) Correct answer C TP / (TP + FP) D TN / (TN + FP) MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn Precision is calculated as: A (TP + TN) / total B FP / (FP + TN) C TP / (TP + FP) Correct answer D TP / (TP + FN) MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn For a classification problem, accuracy is the: A number of false positives B ratio of true positives to all positives C proportion of correctly predicted instances Correct answer D average of precision and recall MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn StandardScaler in scikit-learn transforms features so that they have: A values between 0 and 1 B a median of zero C no missing values D zero mean and unit variance Correct answer MCQSEXAM Show answer Read explanation
Data Science · Scikit-learn In scikit-learn, the fit() method of an estimator: A generates predictions on new data points B evaluates the model on the test data C splits the data into training and test sets D learns the model parameters from the training data Correct answer MCQSEXAM Show answer Read explanation