CLASS XII SERIES MCQ QUESTION FOR BOARD : SET 1

 Class XII Python (Pandas) – MCQs



1. Pandas is mainly used for:

A. Game development
B. Data analysis and manipulation
C. Web designing
D. System programming

Answer: B


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

A. import pandas
B. import pandas as pd
C. import pd
D. include pandas

Answer: B


3. Which Pandas object is used to store one-dimensional data?

A. DataFrame
B. Series
C. Panel
D. Array

Answer: B


4. A DataFrame is:

A. One-dimensional
B. Two-dimensional
C. Three-dimensional
D. Zero-dimensional

Answer: B


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

A. read()
B. readfile()
C. read_csv()
D. open_csv()

Answer: C


6. Which of the following creates a Series?

A. pd.Series([1,2,3])
B. pd.DataFrame([1,2,3])
C. pd.Array([1,2,3])
D. pd.Table([1,2,3])

Answer: A


7. Which attribute is used to display first 5 rows of a DataFrame?

A. df.start()
B. df.top()
C. df.head()
D. df.first()

Answer: C


8. Which attribute returns number of rows and columns?

A. df.size
B. df.shape
C. df.length
D. df.count()

Answer: B


9. Which method is used to display last 5 records?

A. df.last()
B. df.tail()
C. df.end()
D. df.bottom()

Answer: B


10. Which function writes a DataFrame to a CSV file?

A. write_csv()
B. df.save()
C. df.to_csv()
D. export_csv()

Answer: C


11. Index in a Series can be:

A. Only integers
B. Only strings
C. Both integers and labels
D. Only floats

Answer: C


12. Which operator is used for column selection?

A. ()
B. {}
C. []
D. <>

Answer: C


13. What does df.info() display?      EXTRA

A. Data values
B. Summary of statistics
C. Structure and data types
D. Only column names

Answer: C


14. Which method removes missing values?

A. df.remove()
B. df.delete()
C. df.dropna()
D. df.clear()

Answer: C


15. Which value represents missing data in Pandas?

A. 0
B. NULL
C. NaN
D. NONE

Answer: C


16. Which function gives statistical summary?

A. df.stats()
B. df.describe()
C. df.summary()
D. df.analysis()

Answer: B


17. Columns of a DataFrame can be accessed using:

A. Dot operator
B. Index number
C. Column name
D. All of the above

Answer: D


18. Which method changes index labels?

A. df.rename()
B. df.reindex()
C. df.relabel()
D. df.index()

Answer: B


19. Pandas is built on top of which library?

A. Matplotlib
B. NumPy
C. PANDAS
D. PANDA

Answer: B


20. Which function is used to read Excel files?

A. read_excel()
B. read_xls()
C. open_excel()
D. load_excel()

Answer: A





Post a Comment

Please do note create link post in comment section

Previous Post Next Post