Q2:

SQL

Easy

common

Table-ProductsSale: | ID | Product | Price | |---|---|---| | 101 | A | 100 | | 102 | B | 55 | | 103 | C | 55 | | 104 | D | 65 | | 105 | E | 35 | Which query should be used to retrieve the total price from the table for products which have price greater than 55?

Answer options
Option 1
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 2

Q5:

SQL

Easy

common

Consider two tables 'A' and 'B'. What does the following query do? SELECT * FROM A INTERSECT SELECT * FROM B;

Answer options
Option 1
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 5

Q6:

SQL

Medium

common

Out of the following SQL statements, which one will give the range of prices from the 'Products' table?

Answer options
Option 1
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 6

Q7:

SQL

Easy

common

Table 1 | FirstName | LastName | |---|---| | John | Smith | | Bob | Dylan | | Alice | Somers | | Jacob | Hobbs | Table 2 | FirstName | LastName | |---|---| | John | Smith | | Bob | Dylan | | Alice | Somers | What does the Cartesian product of the two tables represent in SQL?

Answer options
Option 4
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 7

Q9:

Database

Easy

common

The following code is used for pickling Python objects. Arrange these code fragments in correct order- (A). pickle.dump(list, fileobj) (B). fileobj= open("myfile.dat", "wb") (C). list= [1, "John", 'f', 25] (D). fileobj.close( )

Answer options
Option 4
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 9

Q12:

Database

Medium

common

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A) Data redundancy | (I) Data is stored in a specific format. | | (B) Data Isolation | (II) Mismatch in the same data maintained at two places. | | (C) Data Inconsistency | (III) There is no link or mapping between the same data in different files, separate programs to access them. | | (D) Data Dependence | (IV) Same data duplicated at different places. |

Answer options

Q13:

SQL

Easy

common

Consider the following table: | Name | Class | DOB | Gender | City | Marks | |---|---|---|---|---|---| | Rohan | XI | 2008 | M | Delhi | 85 | | Priya | XII | 2006 | F | Mumbai | 92 | | Ankit | XI | 2007 | M | Delhi | 88 | | Nidhi | XII | 2006 | F | Mumbai | 90 | | Aarav | IX | 2009 | M | Kolkata | 78 | | Simran | XI | 2007 | F | Chandigarh | 94 | | Rahul | XII | 2006 | M | Pune | 80 | | Ishita | X | 2009 | F | Hyderabad | 87 | From the above table 'STUDENT', which query will fetch the names of the students scoring more than 85 marks?

Answer options

Q14:

SQL

Medium

common

Consider the following table: | Name | Class | DOB | Gender | City | Marks | |---|---|---|---|---|---| | Rohan | XI | 2008 | M | Delhi | 85 | | Priya | XII | 2006 | F | Mumbai | 92 | | Ankit | XI | 2007 | M | Delhi | 88 | | Nidhi | XII | 2006 | F | Mumbai | 90 | | Aarav | IX | 2009 | M | Kolkata | 78 | | Simran | XI | 2007 | F | Chandigarh | 94 | | Rahul | XII | 2006 | M | Pune | 80 | Which SQL query would generate the following output from the above table 'STUDENT'? | Name | |---| | Rohan | | Priya | | Ankit | | Nidhi | (A) SELECT Name FROM STUDENT WHERE Class = 'XI' and Class = 'XII'; (B) SELECT Name FROM STUDENT WHERE NOT Class = 'XI' and Class = 'XII'; (C) SELECT Name FROM STUDENT WHERE City = 'Delhi' and City = 'Mumbai'; (D) SELECT Name FROM STUDENT WHERE City = 'Delhi' or City = 'Mumbai';

Answer options

Q15:

Database

Easy

common

In SQL databases, what does the term "referential integrity" mean?

Answer options

Q16:

Stack

Easy

Computer Science

Which of the following is an application of stack?

Answer options

Q18:

Networks

Easy

Computer Science

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A). Tree | (I). Each node is connected to two devices. | | (B). Ring | (II). Each node connects to every other device. | | (C). Star | (III). Each device connected to a central node | | (D). Mesh | (IV). Can have more than one basic topology. |

Answer options

Q19:

Security Aspects

Easy

Computer Science

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A). Net Etiquette | (I). Copyright infringement | | (B). Using another person's work without obtaining permission to use or pay for using if it is being sold | (II). Hacking | | (C). Act of unauthorized access to a computer , computer network or any digital system | (III). Be respectful | | (D). When the identity of a legitimate user is stolen and misused by someone | (IV). Identity Theft |

Answer options

Q20:

Searching

Easy

Computer Science

For which of the following cases, binary search is not suitable?

Answer options

Q21:

Sorting

Hard

Computer Science

Consider the following list= [8, 7, 13, 1, -9, -14]. Arrange the iterations of the first pass of the **Selection Sort** algorithm given below in ascending order of the iterations. (A). [-14, 8, 13, 7, 1, -9] (B). [-9, 8, 13, 7, 1, -14] (C). [1, 8, 13, 7, -9, -14] (D). [7, 8, 13, 1, -9, -14]

Answer options

Q22:

Data Communication

Easy

Computer Science

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A). Twisted Pair Cable | (I). Thin fiber of glass | | (B). Coaxial Cable | (II). Range 300GHz - 400 THz | | (C). Fiber-Optic Cable | (III). DNA helical Structure | | (D). Infrared Waves | (IV). Insulating Material |

Answer options

Q24:

Data Communication

Easy

Computer Science

The electromagnetic spectrum for Micro Waves ranges _______.

Answer options

Q25:

Exception Handling

Easy

Computer Science

Sequence the correct order of operations in a comprehensive exception handling structure in Python: (A) Ensure the execution of cleanup or final steps in the finally block. (B) Handle exceptions in the subsequent except blocks. (C) Execute the try block where errors might occur. (D) Use the else block for code that executes if no exception occurs.

Answer options

Q26:

Database

Medium

Computer Science

Arrange the following stages in the correct sequence for transitioning from a file system to a DBMS. (A). Identify redundancy (B). Migrate data to database (C). Normalize data (D). Design Relational Schema

Answer options

Q27:

Security Aspects

Easy

Computer Science

DDoS stands for ________.

Answer options

Q28:

SQL

Easy

Computer Science

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A) UPPER( ) | (I) Removes leading and trailing spaces from a string. | | (B) LENGTH( ) | (II) Extracts a specified number of characters from the beginning of a string. | | (C) TRIM( ) | (III) Converts all string characters into uppercase. | | (D) LEFT( ) | (IV) Returns the number of characters in a string. |

Answer options

Q29:

Understanding Data

Easy

Computer Science

Which statistical measure is used to find the middle value of a data set when organized in ascending order?

Answer options

Q30:

Searching

Easy

Computer Science

When an element to be searched is present at one of the following positions in an unsorted list, then which situation(s) will take the least number of comparisons? (A). mid position (B). first position (C). last position (D). not present

Answer options

Q31:

SQL

Easy

Computer Science

In SQL, DATE type , the supported range is ____________________.

Answer options

Q32:

Searching

Easy

Computer Science

Consider the following list=[7, 9, 5, 16, 2, 8, -11]. How many comparisons will be required to find element 20 from this list using the linear search algorithm?

Answer options

Q33:

Queue

Easy

Computer Science

Give the status of a simple queue after following operations- enqueue(z) enqueue(x) enqueue(c) dequeue( ) enqueue(v) dequeue( ) dequeue( )

Answer options

Q34:

Searching

Easy

Computer Science

Consider the list= [34, 16, 2, 26, 80] If the hash function is given by ([i] % 10), which of the elements will create a collision situation?

Answer options

Q35:

File Handling

Easy

Computer Science

dump( ) method is used for _______________.

Answer options

Q36:

Exception Handling

Easy

Computer Science

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A) try | (I) Handles specific errors that may occur. | | (B) except | (II) Block where exceptions are checked. | | (C) finally | (III) Block that executes regardless of preceding block results. | | (D) raise | (IV) Used to manually trigger an exception. |

Answer options

Q37:

Queue

Easy

Computer Science

When the insertion and deletion of the elements are done only from the opposite ends of a dequeue, it is same as-

Answer options

Q38:

Database

Easy

Computer Science

Which of the following are the limitations of file systems? (A). Data Redundancy (B). Data Isolation (C). Data Inconsistency (D). Data Dependence

Answer options

Q40:

Security Aspects

Medium

Computer Science

By passing the network intrusion sensors by sending intrusion packets through multiple routes is called _________.

Answer options

Q41:

Database

Easy

Computer Science

MINUS(-) operation is used to _______.

Answer options

Q43:

Queue

Medium

Computer Science

Sequence for processing print jobs using queue mechanism: (A) Check the queue status for availability. (B) Receive a print job command. (C) Print the job when it reaches the front of the queue. (D) Enqueue the print job to the printer's job queue.

Answer options

Q44:

SQL

Easy

Computer Science

Fill the appropriate clause in the below SQL code to retrieve all columns from the 'customers' table where country is equal to 'USA' and city is equal to 'New York'. SELECT * _____ customers WHERE COUNTRY = 'USA' AND CITY = 'NEW YORK'

Answer options

Q45:

Exception Handling

Medium

Computer Science

Out of the following statements, which one is **incorrect** in the context of exceptions in Python?

Answer options

Q46:

Stack

Medium

Computer Science

In process of converting the infix expression A + B * C - D to postfix expression, what will be the correct order of stack operations? (A). Push * (B). Push + (C). Pop * and + then Push - (D). Pop -

Answer options

Q48:

Understanding Data

Medium

Computer Science

From the table given below: | S.no | Weight(Kg) | |---|---| | 1 | 90 | | 2 | 80 | | 3 | 70 | | 4 | 55 | | 5 | 60 | | 6 | 65 | Find the standard deviation of weight of 6 people?

Answer options

Q51:

Series & DataFrames

Easy

Informatics Practices

df = pd. Series(['London', 'Paris', 'NewDelhi', 'Moscow'], index = ['UK', 'France', 'India', 'Russia']) Which of the following would reverse the order of the series?

Answer options

Q52:

Societal Impacts

Easy

Informatics Practices

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A).Patent | (I). Legal rights of the creator for the protection of original work of different types. | | (B). Trademark | (II). A type of contract or a permission agreement between the creator of an original work permitting someone to use their work. | | (C). Copyright | (III). Distinguishes the brand or commercial enterprise, from other brands or commercial enterprises. | | (D). Licensing | (IV). The owner gets an exclusive right to prevent others from using, selling, or distributing the protected invention. |

Answer options

Q54:

SQL Functions

Easy

Informatics Practices

______ function is used to get a specified day of the month for a given date.

Answer options

Q55:

Pandas Data Analysis

Easy

Informatics Practices

Arrange the following Python statements in correct order to export data from pandas to MYSQL: (A). Import necessary libraries. (B). Use to_sql() function to export the data. (C). Create data frame and pass the parameters if needed. (D). Use the engine=create_engine() function to establish a connection.

Answer options

Q56:

Pandas Data Analysis

Medium

Informatics Practices

___________ is used to read either an sql query or an sql table into a DataFrame using the connection identifier (sql_conn).

Answer options

Q57:

Societal Impacts

Easy

Informatics Practices

The trail of data reflecting the activities performed by user online is called_________.

Answer options

Q58:

Pandas Data Analysis

Easy

Informatics Practices

Which of the following are aggregate functions? (A). max( ) (B). sum( ) (C). count( ) (D). std( )

Answer options

Q59:

Networks

Easy

Informatics Practices

Dynamic web pages can be created using languages such as :- (A). HTML (B). JavaScript (C). Python (D). PHP

Answer options

Q62:

Societal Impacts

Easy

Informatics Practices

FOSS stands for________________ .

Answer options

Q64:

Matplotlib Plotting

Medium

Informatics Practices

______ and _____ governs the values displayed on the x and y-axis.

Answer options

Q65:

Pandas Data Analysis

Easy

Informatics Practices

Arrange the following in order of their occurrence. (A). Use isnull() to find the missing values. (B). Use fillna() to fill in the missing values. (C). Import pandas and read csv. (D). Use pd.get_dummies for label encoding.

Answer options

Q66:

Networks

Medium

Informatics Practices

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A). Browser | (I). Multiple functionality | | (B). Cookie | (II). Particular functionality | | (C). Add-on | (III). Recognize the user | | (D). Plug-in | (IV). Opera |

Answer options

Q68:

Series & DataFrames

Easy

Informatics Practices

Match **List-I** with **List-II** | List-I | List-II | |---|---| | (A). Head | (I). To display dimensionality of a DataFrame | | (B). Tail | (II). To display the first 'n' elements of a DataFrame | | (C). Shape | (III). To display the total number of elements in a DataFrame | | (D). Size | (IV). To display the last 'n' elements of a DataFrame |

Answer options

Q69:

Pandas Data Analysis

Easy

Informatics Practices

To find the total number of NaN values in each column, we use _____.

Answer options

Q70:

SQL Functions

Medium

Informatics Practices

From the table 'Orders' below: | order_Id | customer_Id | order_date | amount | |---|---|---|---| | 1 | 101 | 2024-03-01 | 2500 | | 2 | 102 | 2024-03-01 | 12000 | | 3 | 101 | 2024-03-31 | 3000 | | 4 | 103 | 2024-04-01 | 4500 | | 5 | 102 | 2024-04-30 | 8000 | Which query will retrieve the total amount from 'Orders' made by customer_Id = 101 in the month of March 2024.

Answer options

Q71:

SQL Functions

Easy

Informatics Practices

Sequence the order for a SQL query: (A) Create a Database (B) Create the Table (C) Write the Query (D) Open the Database

Answer options

Q72:

Pandas Data Analysis

Easy

Informatics Practices

Which of the following function is used to identify the null values in a dataframe? (A). isnull( ) (B). isna( ) (C). isempty( ) (D). findnull( )

Answer options

Q73:

Matplotlib Plotting

Easy

Informatics Practices

What does the bins parameter in plt.hist() control?

Answer options

Q74:

Series & DataFrames

Easy

Informatics Practices

When positional indices are used for __________, the value at end index position is excluded.

Answer options

Q75:

Societal Impacts

Easy

Informatics Practices

Presenting someone else's idea or work as one's own idea or work is called ___________.

Answer options

Q77:

Networks

Easy

Informatics Practices

CSS is used for __________________ .

Answer options

Q78:

Series & DataFrames

Medium

Informatics Practices

Consider the following table: | | Priya | Richa | Rohit | Soham | Riya | |---|---|---|---|---|---| | Maths | 85 | 87 | 84 | 76 | 90 | | Science | 86 | 76 | 86 | 66 | 92 | | Hindi | 92 | 91 | 83 | 68 | 97 | | English | 90 | 81 | 90 | 75 | 94 | Which code represents the creation of a slice containing 'Priya' and 'Richa' marks in 'Maths' and 'Science' if the dataframe is represented using 'df' ? (A). df.loc['Maths', 'Science', 'Priya' : 'Richa'] (B). df.loc['Maths' : 'Science', 'Priya', 'Richa'] (C). df.loc['Maths': 'Science', ['Priya', 'Richa']] (D). df.loc[['Maths', 'Science'], ['Priya', 'Richa']]

Answer options

Q79:

Pandas Data Analysis

Easy

Informatics Practices

Which of the following is correct for the continuous data _________? (A). Can be measured (B). Can be in categories (C). Can be in decimals (D). Can be discrete

Answer options

Q80:

SQL Functions

Hard

Informatics Practices

From the table 'Students' and 'Graduates' below: Students | Student_ID | FirstName | LastName | |---|---|---| | 1 | Arun | Singh | | 2 | Ajay | Verma | | 3 | Ashi | Kushwaha | Graduates | Graduate_ID | FirstName | LastName | |---|---|---| | 1 | Dhruv | Manchandani | | 2 | Ajay | Verma | | 3 | Alok | Ranjan | If you want the names of the individuals who are listed in both the 'Students' and 'Graduates' tables, which SQL statement would you use?

Answer options

Q81:

SQL Functions

Medium

Informatics Practices

Which statement correctly retrives the distinct names of all customers who have placed more than 5 orders for the 'Orders' table.

Answer options

Q83:

Matplotlib Plotting

Easy

Informatics Practices

What is the main difference between a histogram and barplot?

Answer options

Q84:

Matplotlib Plotting

Medium

Informatics Practices

Which of the following histogram functions are correct? import matplotlib.pyplot as plt (A). plt.bar( ) (B). plt.hist( ) (C). plt.plot(kind= 'hist') (D). plt.plot(kind = 'histogram')

Answer options

Q85:

Series & DataFrames

Easy

Informatics Practices

Consider the following table: | | Priya | Richa | Rohit | Soham | Riya | |---|---|---|---|---|---| | Maths | 85 | 87 | 84 | 76 | 90 | | Science | 86 | 76 | 86 | 66 | 92 | | Hindi | 92 | 91 | 83 | 68 | 97 | | English | 90 | 81 | 90 | 75 | 94 | How to delete columns having the labels 'Rohit' and 'Soham' if the dataframe is represented using 'df' ?

Answer options

CUET Computer/IP 2025 21 May Shift 1 Past Year Question Paper

Every question from the CUET Computer/IP 2025 21 May Shift 1 paper is here in full, with the correct answer and a step by step solution for each one. It is completely free, there is no login and no paywall, and you can read the whole paper online or download it to revise offline.

You can also attempt it instead of only reading it. Take the paper as a full length mock under exam conditions, or filter it by topic and attempt just that topic as a topic test. Both are free, and you get a breakdown of your accuracy, your timing and your weak areas once you submit.

CUET Computer/IP past year questions (PYQs) are the closest thing to the real exam, so working through them is the quickest way to learn the paper pattern, the marking scheme and the level of difficulty to expect on the day.