- Home
- MCQs by exam
- PPSC IT
- Data Science
PPSC IT MCQs – Data Science · Page 8
231 multiple choice questions typical of the PPSC IT exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
The count of support vectors
-
B
The tuned hyperparameters
-
C
Mean accuracy on the passed data
Correct answer
-
D
The training time in seconds
-
A
GaussianNB
-
B
LinearSVC
Correct answer
-
C
LogisticRegression
-
D
RandomForestClassifier
-
A
StandardScaler
-
B
SimpleImputer
-
C
LabelEncoder
Correct answer
-
D
OneHotEncoder
-
A
Mean squared difference from truth
-
B
Share of predictions that are correct
Correct answer
-
C
Average of the predicted probabilities
-
D
Area under the ROC curve
-
A
Recomputes the metric on the grid mean
-
B
Refits the best estimator on all data
Correct answer
-
C
Repeats the search over a wider grid
-
D
Keeps every fold model for later use
-
A
The mean score only
-
B
The fitted estimators
-
C
A confusion matrix per fold
-
D
One score for each fold
Correct answer
-
A
It picks the algorithm for the user
-
B
It refits the scaler inside each fold
Correct answer
-
C
It runs the model on a GPU faster
-
D
It removes the need for a test set
-
A
Scales it into the range 0 to 1
-
B
Removes its constant values
-
C
Encodes it as dummy columns
-
D
Centres it to mean 0, variance 1
Correct answer
-
A
No, the original order is kept
-
B
Only when random_state is given
-
C
Only for regression targets
-
D
Yes, shuffle defaults to True
Correct answer
-
A
the training accuracy as a floating-point value
-
B
the estimator itself, so that calls can be chained
Correct answer
-
C
a fitted copy, leaving the original unchanged
-
D
a dictionary of the learned parameters
-
A
Only columns free of NaN
-
B
Only the numeric columns
Correct answer
-
C
Every column including text
-
D
Only the index entries
-
A
qcut only handles datetime data
-
B
cut always makes equal-size bins
-
C
qcut bins by quantile; cut by values
Correct answer
-
D
qcut bins by value; cut by quantile
-
A
Null
-
B
True
-
C
False
-
D
None
Correct answer
-
A
The sum
-
B
The count
-
C
The maximum
-
D
The mean
Correct answer
-
A
Ranks x without reordering rows
-
B
Sorts rows by x, largest first
Correct answer
-
C
Sorts columns by x, largest first
-
D
Drops rows where x is negative
-
A
concat joins frames on shared keys
-
B
merge stacks frames along an axis
-
C
merge needs identical column names
-
D
concat stacks frames along an axis
Correct answer
-
A
It reorders the index of the frame
-
B
The inner selection may be a copy
Correct answer
-
C
It always raises a KeyError
-
D
It silently converts dtypes to object
-
A
One row as a Series
Correct answer
-
B
One column as a Series
-
C
The whole DataFrame
-
D
A single scalar cell
-
A
By count, lowest first
-
B
By the index labels
-
C
By original row order
-
D
By count, highest first
Correct answer
-
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
-
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
-
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
-
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
-
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
-
A
The first five rows
Correct answer
-
B
The last five rows
-
C
Five randomly chosen rows
-
D
The five largest values