CUET Computer/IP: Informatics PracticesSQL Functions. Free, no login required.

Q1:

2025: 16 May Shift 1

SQL Functions

Easy

Informatics Practices

What is the output of the following statement?

SELECT ROUND(2928.678,2);

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

Q2:

2025: 16 May Shift 1

SQL Functions

Easy

Informatics Practices

In SQL, which clause is used to specify conditions on the rows with GROUP BY clause?

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

Q3:

2025: 16 May Shift 1

SQL Functions

Easy

Informatics Practices

Consider the following two statements (A) and (B).

(A). MONTHNAME("2025-11-29");

(B). MONTH("2025-11-29");

What is the output of above two statements?

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

Q4:

2025: 16 May Shift 1

SQL Functions

Easy

Informatics Practices

The area represented by black-colored filled parts of the circles 'A' and 'B' is given by___________.

Figure

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

Q5:

2025: 15 May Shift 2

SQL Functions

Medium

Informatics Practices

State the output of the following SQL command.

SELECT MID('COMPUTER SCIENCE',-4);

Answer options
Option 2
Correct Answer
Explanation for 2025: 15 May Shift 2 CSE question 5

Q7:

2025: 15 May Shift 2

SQL Functions

Easy

Informatics Practices

Aggregate functions are also known as ______ functions.

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

Q8:

2025: 15 May Shift 2

SQL Functions

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) GROUP BY(I) work on a single row to return a single value.
(B) Single row functions(II) function is used to group the rows together that contain similar values in a specified column.
(C) Multiple row functions(III) work on a set of records as a whole and return a single value.
(D) Join(IV) is an operation which is used to combine rows of two or more tables based on one or more common fields between them.
Answer options
Option 1
Correct Answer
Explanation for 2025: 15 May Shift 2 CSE question 8

Q9:

2025: 15 May Shift 2

SQL Functions

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) POW( )(I) DATE FUNCTION
(B) COUNT( )(II) NUMERIC FUNCTION
(C) DAY( )(III) TEXT FUNCTION
(D) MID( )(IV) AGGREGATE FUNCTION
Answer options
Option 1
Correct Answer
Explanation for 2025: 15 May Shift 2 CSE question 9

Q10:

2025: 15 May Shift 2

SQL Functions

Easy

Informatics Practices

DELETE statement __________.

Answer options

Q11:

2025: 15 May Shift 2

SQL Functions

Easy

Informatics Practices

State the output of the following query.

SELECT UCASE(LOWER(LEFT('INFORMATICS',3)));

Answer options

Q12:

2025: 14 May Shift 1

SQL Functions

Medium

Informatics Practices

Consider the following two tables 'A' and 'B'.

A

NameRollNoMarks
amit110
vinitNULL20
punit337

B

RollNoMobileNoAddress
191Kushinagar
292Murthal
393Churu
498Deoria

The Cartesian Product of table 'A' and table 'B' shows ________ rows as NULL values.

Answer options

Q13:

2025: 14 May Shift 1

SQL Functions

Easy

Informatics Practices

Consider the following table "Manager".

Manager

MIDMNAME
1KAMAL
2ARPIT
NULLANIL
4NULL
5ARTI

What will be the output of the following SQL statement?

SELECT COUNT(*) from Manager;

Answer options

Q14:

2025: 14 May Shift 1

SQL Functions

Medium

Informatics Practices

To display the 'Number of Bikes' purchased by each customer from the 'SALE' table, what will be the correct order of the following statements?

(A) SELECT CustID, COUNT(*) "Number of Bikes"

(B) HAVING COUNT(*)>3

(C) GROUP BY CustID

(D) FROM SALE

Answer options

Q15:

2025: 14 May Shift 1

SQL Functions

Medium

Informatics Practices

Which of the following statements are correct with respect to NOW() and DATE()?

(A) NOW() returns the current system date

(B) NOW() returns the current system date and time

(C) DATE() returns the date part from the given date

(D) DATE() returns the current system date

Answer options

Q18:

2025: 13 May Shift 2

SQL Functions

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) SUBSTR()(I) To find the position of a substring in a string.
(B) TRIM()(II) To extract a substring from a string.
(C) INSTR()(III) To extract characters from the left side of the string.
(D) LEFT()(IV) To remove spaces from both the sides of the string.
Answer options

Q19:

2025: 13 May Shift 2

SQL Functions

Easy

Informatics Practices

Given the following table:

EMPLOYEE

ENOSALARY
A1014000
B109NULL
C5086000
A3052000

State the output of the following query based on the above given table.

SELECT COUNT(SALARY) FROM EMPLOYEE;

Answer options