Professional Documents
Culture Documents
Class 12 QP
Class 12 QP
PERIODIC TEST-I
CLASS: XII
SUBJECT: Informatics Practices
SESSION: 2024-2025
Q. Marks
No.
SECTION: A
1. Which of the following is a two-dimensional labelled data structure of Python 1
a) Relation b) DataFrame
c) Series d) Square
2. Which of the following statement is wrong? 1
a) Can’t change the index of the Series
b) We can easily convert the list, tuple, and dictionary into Series
c) A Series represents a single column in memory
d) We can create empty Series
3. Consider the following code: 1
import numpy as np
import pandas as pd
l=np.array([10,20])
x=pd.Series(__________) #statement1
print(x)
output of the above code is:
0 1000
1 8000
dtype: int64
Page 1 of 3
SSASLG/PT-I/2024-25
Page 2 of 3
SSASLG/PT-I/2024-25
14. Write a Python code to create a DataFrame with appropriate column headings from the list 3
given below:
[[101,'Gurman',98],[102,'Rajveer',95],[103,'Samar' ,96],[104,'Yuvraj',88]]
15. Write a program in Python to create series of vowels. 3
Page 3 of 3