/**/ Sanjeev Study Hub – Class 11 & 12 Notes, Question Papers, IP & CS Study Material: Pandas MCQ Test
Showing posts with label Pandas MCQ Test. Show all posts
Showing posts with label Pandas MCQ Test. Show all posts

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

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 attribute returns the underlying data of a DataFrame as a 2D numpy ndarray?

30. How do you access a specific column 'Name' in a DataFrame 'df'?

31. Which method is used to rename row or column labels in a DataFrame?

32. How can you add a new column 'Age' to an existing DataFrame 'df'?

33. Which method is used to delete rows or columns from a DataFrame?

34. What parameter makes modifications permanent in place when using drop() or fillna()?

35. Which indexer is label-based for selection in Pandas?

36. Which indexer is integer-position based for selection in Pandas?

37. Which function checks for null/missing values in a DataFrame and returns a boolean DataFrame?

38. Which function is used to fill missing values with a specific scalar value?

39. Which method removes rows containing any missing values?

40. What does df.T represent?

41. Which function provides descriptive statistics like mean, count, min, max, and std for numerical columns?

42. Which method gives a concise summary of a DataFrame including data types and non-null counts?

43. What is the return type of `df['Col1'].mean()`?

44. Which parameter in `read_csv()` specifies the column to use as the row label index?

45. How do you sort a DataFrame 'df' by column 'Score' in descending order?

46. What does `s.ndim` return for a Pandas Series `s`?

47. What does `df.ndim` return for a Pandas DataFrame `df`?

48. Which attribute returns the total number of elements (rows × columns) in a DataFrame?

49. What happens when two Series with non-matching indexes are added together using `+`?

50. Which method can be used to rename columns or indices using a mapping dictionary?

Class 10 Board Exam 2027: Important Chapter-Wise MCQs with Answers

💻 CBSE Class 10 Computer Applications Chapters: Images, Links, Tables, Forms & Frames (30 MCQs) ...