IMPORTANT MULTIPLE CHOICE QUESTIONS
Subject: Informatics Practices (Code-065)
CLASS – XII TERM -I SESSION 2021-2022
UNIT 1 - DATA HANDLING USING PANDAS AND
DATA VISUALISATION
(PART- 2)
1. Commonly used data structures in pandas
a. Series
b. Dataframe
c. Both a and b
d. None of the above
2. Pandas Series is a _____dimensional array:
a. One
b. Two
c. Multi
d. All the above
3. Pandas Dataframe is:
a. 2 Dimensional
b. 3 Dimensional
c. 1 Dimensional
d. Multidimensional
4. The data label associated with a particular value is called
a. label
b. index
c. values
d. none of the above
5. We can imagine a Pandas Series as a column in a ___
a. Spreadsheet
b. MS Word
c. Powerpoint
d. All the above
6. common ways for accessing the elements of a series /dataframe
a. indexing
b. slicing
c. both a and b
d. none of the above
7. To extract a part of a series can be done through
a. cutting
b. slicing
c. indexing
d. all the above
8. Code to get the series S in reverse order
a. S[ : : -1]
b. S[ : : -2]
c. S[ : : 1]
d. All the above
9. Which attribute prints the number of values in the Series object
a. name
b. index
c. value
d. size
10. Series method Returns the number of non-NaN values in the Series
a. count ()
b. head(n)
c. tail(n)
d. None of the above
11. Which of the following import statement is correct?
a. import as pandas pd
b. import pandas as pd
c. pandas import as pd1
d. import as pandas pd
12. Function to display the first n rows in the DataFrame:
a. head(n)
b. tail(n)
c. count()
d. none of the above
13. Function to display the last n rows in the DataFrame:
a. head(n)
b. tail(n)
c. count()
d. none of the above
14. we can add new row to a data frame ResultDF using the method
a. ResultDF .add()
b. ResultDF. sum()
c. ResultDF.loc()
d. None of the above
15. we can delete rows and columns from data frame ResultDF using the method
a. ResultDF.remove()
b. ResultDF. delete()
c. ResultDF.drop()
d. None of the above
16. We can change the name of labels of dataframe ResultDF using the method
a. ResultDF.change()
b. ResultDF.alter()
c. ResultDF.rename()
d. None of the above
17. Attribute used to display row labels of dataframe
a. values
b. shape
c. size
d. index
18. Attribute used to display columns labels of dataframe
a. values
b. shape
c. size
d. columns
19. Attribute used to display total number of rows and column of dataframe
a. values
b. shape
c. size
d. index
20. Attribute used to display total number of elements of dataframe
a. values
b. shape
c. size
d. index
21. which of the following is not an attribute of dataframe
a. T
b. head(n)
c. dtypes
d. max
22. Function used to load data from CSV file to dataframe
a. load_csv
b. fetch_csv
c. to_csv
d. read_csv
23. function used to export dataframe to CSV file
a. TO_CSV
b. To_csv
c. to_csv
d. all the above
24. When using a dictionary to create a DataFrame, keys of the Dictionary becomes
a. Row labels
b. Column labels
c. Both row and column labels
d. None of the above
25. DataFrame.T gives the _____of a DataFrame
a. Size
b. Shape
c. Transpose
d. None of the above
26. Pandas.DataFrame.append() method is used to
a. Transpose two dataframes
b. Add values of two dataframes
c. Merge two dataframes
d. None of the above
27. Pandas is mainly used for
a. Data recovery
b. Data backup
c. Data analysis
d. All the above
28. Which of the following is not Pandas data structure?
a. Series
b. Data Frame
c. Queue
d. None of above
29. You can create a Python pandas series using?
a. sequence
b. ndarray
c. tuple
d. all of the above
30. Pandas supports which of the following types of indexes?
a. Positional and Labelled Indexing
b. Numbered and Valued Indexing
c. Row and Column Indexing
d. Loop Indexing
SUBSCRIBE IP CS BY YOGENDRA SIR ON YOUTUBE AND TELEGRAM
FOR VIDEOS AND NOTES PDFS.
THANKU AND SHARE WITH OTHERS.
a. tail (n)
b. head (n)
c. top (n)
d. first (n)
20. Pandas data frame cannot be created using:
a. Dictionary of tuples
b. Series
c. Dictionary of List
d. List of Dictionaries
26. Assuming the given series, named stud, which command will be used to print 5 as
output?
Amit 90
Ramesh 100
Mahesh 50
john 67
Abdul 89
Name: Student, dtype: int64
a. stud.index
b. stud.length
c. stud.values
d. stud.size
27. Which graph should be used where each column represents a range of values, and the height of a
column corresponds to how many values are in that range?
a. plot
b. line
c. bar
d. histogram
37. What is a correct syntax to return the values of first row of a Pandas DataFrame?
Assuming the name of the DataFrame is dfRent.
a. dfRent[0]
b. dfRent.loc[1]
c. dfRent.loc[0]
d. dfRent.iloc[1]