0% found this document useful (0 votes)
3 views1 page

DataFrame Basics and Operations Quiz

The document contains a quiz with multiple-choice questions about DataFrames in programming, specifically focusing on their creation, properties, and related libraries. Key concepts include the mutability of DataFrames, how to add columns, and the types of data structures that can be used to create them. The correct answers to the questions are provided for each query.

Uploaded by

salmaabo341
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

DataFrame Basics and Operations Quiz

The document contains a quiz with multiple-choice questions about DataFrames in programming, specifically focusing on their creation, properties, and related libraries. Key concepts include the mutability of DataFrames, how to add columns, and the types of data structures that can be used to create them. The correct answers to the questions are provided for each query.

Uploaded by

salmaabo341
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1- Which of the following function is used to create DataFrame?

A) DataFrame( ) B) NewFrame( ) C) CreateDataFrame( ) D) None of the Above

Answer A) DataFrame( )

2- In the following statement, if column ‘Rollno’ already exists in the DataFrame ‘D1’ then the
assignment statement will ___D1['Rollno'] = [1,2,3] #There are only three rows in DataFrame D1

A) Return error B) Replace the already existing values. C) Add new column D) None of the above

Answer B) Replace the already existing values

3- Which of the following statements is false?

A) Dataframe is size mutable B) Dataframe is value mutable

C) Dataframe is immutable D) Dataframe is capable of holding multiple type of data

Answer C) Dataframe is immutable

4- We can create DataFrame from _____

A) Numpy arrays B) List of Dictionaries C) Dictionary of Lists D) All of the above

Answer D) All of the above

5- In DataFrame, by default new column added as the _____________ column

A) First (Left Side) B) Second C) Last (Right Side) D) Any where in dataframe

Answer C) Last (Right Side)

6- Which of the following library is similar to Pandas ?

A. NumPyB. B) RPyC. C) OutPyD. D) None of the Mentioned

Answer: Option A

7- ________ graph displays information as a series of data points connected by straight line segments.

A) Bar D) Scatter C) Histogram D) Line

Answer : D

You might also like