CUET Computer/IP: Informatics PracticesSeries & DataFrames. Free, no login required.

Q1:

2026: 19 May Shift 1

Series & DataFrames

Easy

Informatics Practices

Consider the following DataFrame named "marks":

ArnabSumitSonam
Maths847885
Science868486
Hindi789594

Which of the following option is correct to insert the record of another student named "Priya"?

Answer options
Option 4
Correct Answer
Explanation for 2026: 19 May Shift 1 CSE question 1

Q2:

2026: 19 May Shift 1

Series & DataFrames

Medium

Informatics Practices

What will be output of the following python code?

import pandas as pd

series1 = pd.Series(["Kavi","Shyam","Ravi"], index=[3,5,1])

print(series1[::-1])

Answer options
Option 3
Correct Answer
Explanation for 2026: 19 May Shift 1 CSE question 2

Q3:

2026: 18 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Which of the following statements are TRUE in the context of Pandas Series?

A. The elements can be indexed in descending order also.

B. We can not define our own labeled index to access elements of an array.

C. We can define our own labeled index to access elements of an array.

D. Series requires less memory as compared to NumPy arrays.

Answer options
Option 4
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 3

Q4:

2026: 18 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Which of the following is NOT a valid built-in Pandas method?

Answer options
Option 4
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 4

Q5:

2026: 18 May Shift 2

Series & DataFrames

Easy

Informatics Practices

_________ is used to merge two DataFrames.

Answer options
Option 1,3
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 5

Q6:

2026: 18 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Consider the following statement:

seriesTenTwenty=pd.Series(np.arange(10, 20, 1))

Based on the above statement, arrange the following in ascending order according to the number of values in their result.

A. seriesTenTwenty.count()

B. seriesTenTwenty.head()

C. seriesTenTwenty.head(2)

D. print(seriesTenTwenty)

Answer options
Option 1
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 6

Q7:

2026: 18 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Which action will take place as a result of the following code segment?

import numpy as np
import pandas as pd
array1= np.array([1, 2, 3, 4])
series1 = pd.Series(array1)
Answer options
Option 1
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 7

Q8:

2026: 18 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Which of the following are valid types of index in the context of Python?

A. Positional Index

B. Dictionary Index

C. Series Index

D. Labelled Index

Answer options
Option 1
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 8

Q9:

2026: 13 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Consider the DataFrame "Examdf" that has rows representing the subjects 'Maths', 'Science', and 'Hindi', and marks for six students in these subjects shown as follows:

ArnabRamitSamridhiRiyaMalikaPreeti
Maths909289819489
Science918178679976
Hindi979688679978

We need to add the marks [85, 86, 83, 80, 90, 89] for these six students in 'English' subject to this DataFrame. Which of the following is the correct code to implement this?

Answer options
Option 1
Correct Answer
Explanation for 2026: 13 May Shift 2 CSE question 9

Q10:

2026: 13 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Which of the following statements are TRUE?

(A) A Series is a one-dimensional array containing a sequence of values.

(B) A DataFrame is a two-dimensional labelled data structure like a spreadsheet.

(C) When labelled indexes are used for slicing, the value at the end of the index position is excluded.

(D) The basic difference between Pandas Series and NumPy ndarray is that operations between Series automatically align the data based on labels.

Answer options

Q11:

2026: 13 May Shift 2

Series & DataFrames

Easy

Informatics Practices

What will be the output of the following Python code?

import pandas as pd

dict1 = {'India': 'NewDelhi', 'UK': 'London', ‘Japan’: 'Tokyo'}

series8 = pd.Series(dict1)

print(series8)

Answer options

Q12:

2026: 13 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Which of the following ways can be used to create a DataFrame in Python?

(A) NumPy ndarrays

(B) Lists

(C) Lists of Dictionary

(D) Strings

Answer options

Q13:

2026: 13 May Shift 2

Series & DataFrames

Easy

Informatics Practices

What is the output of the following python code?

import pandas as pd

seriesMnths = pd.Series([2,3,4],index=["Feb ","Mar","Apr"])

print(seriesMnths["Mar"] )

Answer options

Q14:

2026: 13 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Which of the following is the correct command to read the CSV file "ResultData.csv" separated by ',' , using the pandas library in Python? The file is stored in "C:/NCERT".

Answer options

Q15:

2026: 11 May Shift 2

Series & DataFrames

Easy

Informatics Practices

If the DataFrame has more than one row with the same label, the _______________ method will delete all the matching rows from it.

Answer options

Q16:

2026: 11 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Arrange the steps of creating a DataFrame from the numpy array:

A. array1=np.array([1,2,3])

B. import numpy as np

import pandas as pd

C. dframe= pd.DataFrame(array1)

D. print (dframe)

Answer options

Q17:

2026: 11 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Given a DataFrame 'df' with columns 'Age' and 'Salary'. In order to select all rows where the age is greater than 30 and the salary is less than 50000, which of the following code is correct?

Answer options

Q18:

2026: 11 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Identify the statements which are true for NumPy and Pandas Series:

A. A Series can only hold numeric data.

B. A NumPy array has an implicitly defined index associated with each element.

C. A Series can hold different types of data.

D. The two common ways of accessing the elements of a series are Indexing and Slicing.

Answer options

Q19:

2026: 11 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Consider the given series:

seriesCapCntry = pd.Series(['NewDelhi', 'WashingtonDC', 'London', 'Paris'], index=['India', 'USA', 'UK', 'France'])

Select the output of the following command:

seriesCapCntry[ : : -1]

Answer options

Q20:

2026: 11 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Which of the following command will display a tuple representing the dimensionality of the DataFrame 'df'?

Answer options

Q21:

2026: 11 May Shift 2

Series & DataFrames

Easy

Informatics Practices

What is the result of the following code for Series?

s = pd.Series([25,30,35,40])

s = s + pd.Series([45,50,55,60])

Answer options

Q22:

2025: 3 June Shift 2

Series & DataFrames

Easy

Informatics Practices

Which of the following syntax is used to transpose a DataFrame?

Answer options

Q23:

2025: 3 June Shift 2

Series & DataFrames

Easy

Informatics Practices

Which of the following is correct way to create a pandas 'Series' from a list?

Answer options

Q24:

2025: 3 June Shift 2

Series & DataFrames

Easy

Informatics Practices

Arrange the following steps in the correct sequence to create a NumPy array and perform an element-wise square operation .

(A) import NumPy as np

(B) arr = np.array([1,2,3,4,5])

(C) arr_square = np.power(arr, 2)

(D) print(arr_square)

Answer options

Q25:

2025: 3 June Shift 2

Series & DataFrames

Medium

Informatics Practices

Which of the following statements is correct to merge two pandas DataFrames 'df1' and 'df2' based on common column 'ID'?

Answer options

Q26:

2025: 3 June Shift 2

Series & DataFrames

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) df.drop(column=['A'])(I) Changing the name of a column
(B) df.head(n)(II) Delete column
(C) df.rename(column={'A':'Alpha'})(III) Select first 'n' rows
(D) df.tail(n)(IV) Select the last 'n' rows
Answer options

Q27:

2025: 3 June Shift 2

Series & DataFrames

Easy

Informatics Practices

What is correct way to display the data types of each column in a DataFrame?

Answer options

Q28:

2025: 30 May Shift 2

Series & DataFrames

Medium

Informatics Practices

Which of the following command for a given dataframe 'ResultDF' will set all values in 'ResultDF' to 0?

Answer options

Q29:

2025: 30 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) Deleting Rows or Columns from a DataFrame.(I) tail(n)
(B) Renaming Row Labels of a DataFrame.(II) drop()
(C) Joining, Merging and Concatenation of DataFrames.(III) rename()
(D) To display the last 'n' rows in the DataFrame.(IV) append()
Answer options

Q30:

2025: 30 May Shift 2

Series & DataFrames

Easy

Informatics Practices

Which of the following are well-established Python libraries?

(A) NumPy

(B) Pandas

(C) Matplotlib

(D) Series

Answer options