Explore topic-wise MCQs in Data Science.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Data Science knowledge and support exam preparation. Choose a topic below to get started.

1.

All values of categorical data are either in categories or np.nan.

A. True
B. False
Answer» B. False
2.

Which of the following method can be used to rename categorical data?

A. Categorical.rename_categories()
B. Categorical.rename()
C. Categorical.mv_categories()
D. None of the mentioned
Answer» B. Categorical.rename()
3.

Using _________ on categorical data will produce similar output to a Series or DataFrame of type string.

A. .desc()
B. .describe()
C. .rank()
D. none of the mentioned
Answer» C. .rank()
4.

Which of the following is used to generate an index with time delta?

A. TimeIndex
B. TimedeltaIndex
C. LeadIndex
D. None of the mentioned
Answer» C. LeadIndex
5.

Which of the following scalars can be converted to other frequencies by as typing to a specific timedelta type?

A. Timedelta Series
B. TimedeltaIndex
C. Timedelta
D. All of the mentioned
Answer» E.
6.

Numeric reduction operation for timedelta64[ns] will return _________ objects.

A. Timeseries
B. Timeplus
C. Timedelta
D. None of the mentioned
Answer» D. None of the mentioned
7.

Which of the following operations are supported on Time Frames?

A. idxmax
B. ixmax
C. ixmin
D. none of the mentioned
Answer» B. ixmax