Class 12 Python Pandas 1 MCQ | Python Pandas 1 Quiz Class 12 Preview Class 12 Python Pandas 1 MCQ | Python Pandas 1 Quiz Class 12 0% Multiple Choice Questions Class 12 Python Pandas 1 Informatics Practices 1 / 34 1. To get the number of dimensions of a series object, _____ attribute is used. a. ndim b. index c. size d. itemsize 2 / 34 2. The axis 1 specifies Dataframe's _____. a. Values b. Rows c. Columns d. Datatype 3 / 34 3. Which of the following statements is false? a. Dataframe is capable of holding multiple types of data. b. Dataframe is size-mutable. c. Dataframe is values-mutable. d. Dataframe is immutable. 4 / 34 4. Which of the following is not true about Dataframe? a. Dataframe index can be a string b. Dataframe is size immutable c. None of these d. Dataframe can be created using dictionaries 5 / 34 5. To access value of dataframe using column label we can use ________ a. loc b. All of these c. dataframe_object.column_label 6 / 34 6. To delete a row from a DataFrame, we can use _____ statement. a. remove b. drop c. cancel d. del 7 / 34 7. A two-dimensional labelled array that is an ordered collection of columns to store heterogeneous data types is: a. Series b. NumPy array c. Panel d. DataFrame 8 / 34 8. Identify the correct statement : a. NaN is used for missing data in Pandas b. Series works similar to an array c. All of the mentioned 9 / 34 9. To change 2nd row ānd 4th column's value 50 in dataframe D1, we can write _____. a. D1.iat[2, 4] = 50 b. D1.iat[3, 4] = 50 c. D1.iat[3, 5] = 50 10 / 34 10. To display last five rows of a Series object S1, you can write _____. a. S1.tail() b. S1.head() c. S1.tail (5) d. S1.head(5) 11 / 34 11. Which attribute of DataFrame is used to retrieve its shape? a. T b. Empty c. Ndim d. Shape 12 / 34 12. To get the transpose of a Dataframe D1, you can write _____. a. D1.Transpose b. D1.T c. D1.Swap d. All of these 13 / 34 13. Which of the following is a valid statement to create a data frame. a. DF=pd.DataFrame(dictionary1) b. All of these c. DF=pd.Dataframe(dictionary1) d. DF=pd.dataframe(dictionary1) 14 / 34 14. To specify datatype int16 for a series object, we can write _______ a. All of the above b. pd.series(data = array, dtype = numpy.int16 ) c. pd.Series(data = array.dtype = pandas.int16) d. pd.Series(data = array, dtype = int16) 15 / 34 15. To display first three elements of a Series object S1, you can write _____. a. All of these b. S1[3rd] c. S1[3] d. S1[:3] 16 / 34 16. Which of the following commands is used to install Pandas? a. python install pandas b. pip install pandas c. pip install python-pandas d. python install python 17 / 34 17. How many axis does a Dataframe have? a. None of these b. One c. Three d. Two 18 / 34 18. Missing data in Pandas object is represented as a. NaN b. Null c. None d. Missing 19 / 34 19. what is the output of following:print(D1.loc[:]) a. All columns b. None of these c. All rows d. All rows and columns 20 / 34 20. To check if the series object contains NaN values, _____ attribute is used. a. dtype b. hasnans c. nbytes d. ndim 21 / 34 21. The axis 0(Zero) specifies Dataframe's _____. a. columns b. datatype c. values d. rows 22 / 34 22. To create an empty Series object, we can use a. pd.series() b. pd.series(np.NaN) c. All of these d. pd.series(empty) 23 / 34 23. Command to display both row and column index label of dataframe D1 __________ a. D1.axes( ) b. D1.index( ) c. D1.axis( ) 24 / 34 24. To get the number of elements in a series object, _____ attribute can be used. a. index b. ndim c. size d. itemsize 25 / 34 25. Which attribute of DataFrame is used to perform the transpose operation on a DataFrame? a. Empty b. Ndim c. T d. Shape 26 / 34 26. Which among the following options can be used to create a DataFrame in Pandas? a. All of these b. ndarray c. Scalar value d. Dictionary 27 / 34 27. Full form of CSV is ____________ a. Column Separated Variable b. Comma Separated Variables c. Comma Separated Values d. Column Separated Values 28 / 34 28. To get a number representing number of axes in a Dataframe, _____ attribute may be used. a. values b. size c. shape d. ndim 29 / 34 29. To get the number of bytes of the series data, _____ attribute is used. a. ndim b. hasnans c. nbytes d. dtype 30 / 34 30. To access sname column from 'Student' DataFrame we can use _________ a. Student['sname'] b. Student.sname c. All of these 31 / 34 31. To display the 3rd and 4th columns from the 6th to 8th rows of a Dataframe D1, we can use _____. a. D1.iloc[6:9, 3:5] b. D1.iloc[6:8, 3:4] c. D1.iloc[6:8, 3:5] 32 / 34 32. Which of the following is not an attribute of Dataframe? a. empty b. axes c. transponse d. Size 33 / 34 33. To display third element of a series object S1, you can write _____. a. S1[2] b. S1[3] c. S1[:2] d. S1[:3] 34 / 34 34. To get the size of the datatype of the items in series object, we can use _____ attribute. a. ndim b. index c. itemsize d. size Your score is The average score is 0% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Spread the love Lesson tags: Class 12 Python Pandas 1 MCQ, Python Pandas 1 Quiz Class 12 Python Pandas 2 Class 12 Informatics Practices Multiple Choice Questions 2023 Back to: CBSE class 12 Informatics Practices notesSpread the love