Q1:

2025: 22 May Shift 1

SQL

Easy

Computer Science

For the given table 'STUDENT':

S_idNAMESTREAMMARKSSECTION
1AshuScience90A
2AjayEnglish80B
3RichaHistory85C
4RajeevScience79A
5ArunScience88B
6RuchiEnglish78C

What will be the command to select information of all Science students from the table 'STUDENT'?

Answer options
Option 3
Correct Answer
Explanation for 2025: 22 May Shift 1 CSE question 1

Q2:

2025: 22 May Shift 1

SQL

Easy

Computer Science

For the following table 'PRODUCT':

IDNameCategoryPriceQuantitySupplierDate
301IphoneElectronics8000025Apple Inc.2022-06-10
302SamsungElectronics6000040Samsung Elec.2022-05-15
303NikeFootwear1200050Nike2022-07-01
304DellElectronics9000010Dell2022-03-20
305PumaFootwear800060Puma2022-04-05

Which query retrieves the total number of products in each category?

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

Q3:

2025: 22 May Shift 1

SQL

Medium

Computer Science

For the following table:

IDNameCategoryPriceQuantitySupplierDate
301IphoneElectronics8000025Apple Inc.2022-06-10
302SamsungElectronics6000040Samsung Elec.2022-05-15
303NikeFootwear1200050Nike2022-07-01
304DellElectronics9000010Dell2022-03-20
305PumaFootwear800060Puma2022-04-05

What will be the sequence of steps from the following to retrieve the products after May 2022?

(A) Use the WHERE clause to filter rows with Date>'2022-05-31'

(B) Select columns Name, Category and Date

(C) Write the SELECT query

(D) Execute the query

Answer options
Option 4
Correct Answer
Explanation for 2025: 22 May Shift 1 CSE question 3

Q4:

2025: 21 May Shift 1

SQL

Easy

Computer Science

Match List-I with List-II

List-IList-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
Option 2
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 4

Q5:

2025: 21 May Shift 1

SQL

Easy

Computer Science

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

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

Q6:

2025: 21 May Shift 1

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
Option 1
Correct Answer
Explanation for 2025: 21 May Shift 1 CSE question 6

Q7:

2025: 20 May Shift 1

SQL

Easy

Computer Science

Arrange the following statements in correct order.

(A) HAVING CLAUSE

(B) FROM TABLENAME

(C) GROUP BY

(D) SELECT (AGGREGATE FUNCTION)

Answer options
Option 3
Correct Answer
Explanation for 2025: 20 May Shift 1 CSE question 7

Q8:

2025: 20 May Shift 1

SQL

Medium

Computer Science

Which of the following statements are TRUE about Join on two tables.

(A) Join operation combines tuples from both the tables.

(B) Join operation is same like Cartesian of two tables.

(C) Join operation combines attributes from both the tables.

(D) There should be at least one common attribute in both the tables.

Answer options
Option 4
Correct Answer
Explanation for 2025: 20 May Shift 1 CSE question 8

Q9:

2025: 20 May Shift 1

SQL

Easy

Computer Science

The GROUP BY function is used in SQL to group rows with similar values together. Some of the group functions used are____________.

(A) MAX()

(B) MIN()

(C) SUM()

(D) LENGTH()

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

Q10:

2025: 20 May Shift 1

SQL

Medium

Computer Science

Find the output of the following SQL statement:

SELECT DAY('2010-03-03')+MONTH('2011-04-05')+YEAR('2012-06-09');

Answer options

Q11:

2025: 16 May Shift 1

SQL

Easy

Computer Science

Consider the following 'EMPLOYEE' table.

EmpNoSalaryDepID
119000D1
220000D2
321000D1
435000D2

Which statement is used to select details of all employees except those working in DepID D1?

Answer options

Q12:

2025: 16 May Shift 1

SQL

Easy

Computer Science

Match List-I with List-II

List-IList-II
(A) Numeric value consisting of maximum 3 digits(I) INT
(B) Variant length string of maximum 12 characters(II) CHAR(12)
(C) Date Value(III) VARCHAR(12)
(D) Value consisting of 12 digit aadhar number(IV) DATE
Answer options

Q13:

2025: 16 May Shift 1

SQL

Easy

Computer Science

Which of the following query selects details of those employees whose name consists of exactly 4 letters and starts with letter 'p'?

Answer options

Q14:

2025: 15 May Shift 2

SQL

Medium

Computer Science

Identify the correct statement(s) based on operations on relations: 'T1' AND 'T2'

(A) SELECT * FROM T1,T2 is used to find Cartesian product on two tables.

(B) SELECT * FROM T1 AND SELECT * FROM T2 is used to find Cartesian product on two tables.

(C) SELECT * FROM T1,T2 is used to find equi join on two tables.

(D) SELECT * FROM T1 JOIN SELECT * FROM T2 is used to find equi join on two tables.

Answer options

Q15:

2025: 15 May Shift 2

SQL

Easy

Computer Science

Arrange the SQL query in a sequence for "Selecting names of all employees who are getting bonus in the descending order of salary". Assume the table structure as :

Table- 'EMPLOYEES'

Structure: (EMPNO, NAME, SALARY, BONUS)

(A) FROM EMPLOYEES

(B) SELECT NAME

(C) ORDER BY SALARY DESC

(D) WHERE BONUS IS NOT NULL

Answer options

Q16:

2025: 15 May Shift 2

SQL

Easy

Computer Science

Identify the correct order while working on databases:

(A) Activate database

(B) Insert records

(C) Create a table with constraints

(D) Create a database

Answer options

Q18:

2025: 14 May Shift 1

SQL

Easy

Computer Science

Which of the following SQL statement is correct to rename a column name from NAME to SNAME from 'STUDENT' table while displaying the output?

Answer options

Q19:

2025: 14 May Shift 1

SQL

Easy

Computer Science

What is the correct syntax for removing primary key from a table?

Answer options

Q21:

2025: 13 May Shift 2

SQL

Medium

Computer Science

State the output of the following query.

SELECT LENGTH(MID('INFORMATICS PRACTICES',5,-5));

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

Q22:

2025: 13 May Shift 2

SQL

Easy

Computer Science

What will be the format of the output of the NOW() function?

Answer options

Q25:

2025: 13 May Shift 2

SQL

Easy

Computer Science

Ms Ritika wants to delete the table 'sports' permanently. Help her in selecting the correct SQL command from the following.

Answer options

Q26:

2025: 13 May Shift 2

SQL

Easy

Computer Science

Which of the following are text functions?

(A) MID()

(B) INSTR()

(C) SUBSTR()

(D) LENGTH()

Answer options

Q27:

2025: 13 May Shift 2

SQL

Easy

Computer Science

Match List-I with List-II

List-IList-II
(A) group by(I) math function
(B) mid()(II) aggregate function
(C) count()(III) having
(D) mod()(IV) text function
Answer options