Explore topic-wise MCQs in Data Science.

This section includes 14 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.

If data is an ndarray, index must be the same length as data.

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

Which of the following operation works with the same syntax as the analogous dict operations?

A. Getting columns
B. Setting columns
C. Deleting columns
D. All of the mentioned
Answer» E.
3.

Which of the following works analogously to the form of the dict constructor?

A. DataFrame.from_items
B. DataFrame.from_records
C. DataFrame.from_dict
D. All of the mentioned
Answer» B. DataFrame.from_records
4.

Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?

A. DataFrame.from_items
B. DataFrame.from_records
C. DataFrame.from_dict
D. All of the mentioned
Answer» B. DataFrame.from_records
5.

Which of the following input can be accepted by DataFrame?

A. Structured ndarray
B. Series
C. DataFrame
D. All of the mentioned
Answer» E.
6.

Which of the following thing can be data in Pandas?

A. a python dict
B. an ndarray
C. a scalar value
D. all of the mentioned
Answer» E.
7.

WHICH_OF_THE_FOLLOWING_OPERATION_WORKS_WITH_THE_SAME_SYNTAX_AS_THE_ANALOGOUS_DICT_OPERATIONS_??$

A. Getting columns
B. Setting columns
C. Deleting columns
D. All of the Mentioned
Answer» E.
8.

If data is an ndarray, index must be the same length as data.$

A. True
B. False
Answer» B. False
9.

Which of the following works analogously to the form of the dict constructor ?

A. DataFrame.from_items
B. DataFrame.from_records
C. DataFrame.from_dict
D. All of the Mentioned
Answer» B. DataFrame.from_records
10.

Series is a one-dimensional labeled array capable of holding any data type.

A. True
B. False
Answer» B. False
11.

Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame ?

A. DataFrame.from_items
B. DataFrame.from_records
C. DataFrame.from_dict
D. All of the Mentioned
Answer» B. DataFrame.from_records
12.

Which of the following input can be accepted by DataFrame ?

A. Structured ndarray
B. Series
C. DataFrame
D. All of the Mentioned
Answer» E.
13.

The result of an operation between unaligned Series will have the ________ of the indexes involved.

A. intersection
B. union
C. total
D. all of the Mentioned
Answer» C. total
14.

Which of the following thing can be data in Pandas ?

A. a python dict
B. an ndarray
C. a scalar value
D. all of the Mentioned
Answer» E.