/**/ Sanjeev Study Hub – Class 11 & 12 Notes, Question Papers, IP & CS Study Material: Class 12 IP: Python Pandas 50 MCQs Online Practice Test (Instant Result)

Friday, October 9, 2026

Class 12 IP: Python Pandas 50 MCQs Online Practice Test (Instant Result)

Class XII - Informatics Practices (065)

Python Pandas – I & II | 50 Important MCQs Test

๐Ÿ“‹ Total Questions: 50 ๐ŸŽฏ Full Marks: 50 ⏱️ CBSE Board Prep 2026-27

1. Which of the following is the correct way to import Pandas?

2. Which Pandas data structure is one-dimensional and labelled?

3. Which Pandas data structure is two-dimensional?

4. Which function is used to create a Series?

5. Which function is used to create a DataFrame?

6. By default, how many rows are displayed by head()?

7. Which function displays the last five rows of a DataFrame by default?

8. Which function is used to read a CSV file in Pandas?

9. Which method is used to save a DataFrame as a CSV file?

10. In a Series, labels associated with values are called:

11. What does df.shape return?

12. What does df.columns return?

13. What does df.index return?

14. Which attribute displays the data types of columns?

15. Which argument is commonly used in drop() to specify a column?

16. Which value commonly represents a missing value in Pandas?

17. Which of the following creates a Series with values 10, 20 and 30?

18. What is the default index of pd.Series([10,20,30])?

19. What is the output of s[1] if s = pd.Series([10,20,30])?

20. Which expression selects elements from position 1 up to but not including 4?

21. Which statement creates a Series from a dictionary?

22. When a scalar is used to create a Series, what is required?

23. Which statement is correct for scalar Series creation?

24. Which operator can be used for element-wise addition of two compatible Series?

25. Which method returns the maximum value of a Series?

26. Which method returns the minimum value of a Series?

27. Which method returns the sum of values in a Series?

28. Which statement creates a DataFrame from a dictionary of lists?

29. Which statement creates a DataFrame from a list of dictionaries?

30. How can a new column 'Grade' be added to df?

31. Which statement selects the Marks column from df?

32. Which statement selects two columns Name and Marks?

33. Which statement deletes a column named Marks?

34. Which statement renames Marks to Score?

35. What does axis=1 generally refer to in DataFrame operations?

36. What does axis=0 generally refer to in DataFrame operations?

37. Which expression filters rows where Marks are greater than 80?

38. What type of selection is df[df['Marks'] > 80]?

39. Which command displays the first 3 rows?

40. Which command displays the last 3 rows?

41. What does df.info() provide?

42. Which statement reads student.csv into a DataFrame named df?

43. Which statement saves df to student.csv without writing the index?

44. If df has 4 rows and 3 columns, what is df.shape?

45. What is the output type of df.shape?

46. Which code gives rows where Marks are equal to 90?

47. Which operator means 'not equal to' in Python?

48. Which of the following is a valid DataFrame column assignment?

49. Which Pandas structure is best suited for tabular data with rows and columns?

50. Which of the following is NOT a Pandas operation?

No comments:

Post a Comment

Please do not any spam in the comment box.

Class 12 IP: Python Pandas 50 MCQs Online Practice Test (Instant Result)

Class XII - Informatics Practices (065) Python Pandas – I & II | 50 Important MCQs Test ...