CUET-UG SERIES Computer-science
Sql Functions
6 previous year questions.
Volume: 6 Ques
Yield: Medium
High-Yield Trend
6
2023 Chapter Questions 6 MCQs
01
PYQ 2023
medium
computer-science ID: cuet-ug-
Match List I with List II
| LIST I | LIST II |
|---|---|
| A. SELECT LOWER('COMPUTER'); | IV. 'computer' |
| B. SELECT LEFT('COMPUTER', 3); | I. 'COM' |
| C. SELECT RIGHT('COMPUTER', 4); | II. 'UTER' |
| D. SELECT MID('COMPUTER', 2, 3); | III. 'OMP' |
1
A-I, B-II, C-IV, D-III
2
A-IV, B-I, C-III, D-II
3
A-IV, B-I, C-II, D-III
4
A-IV, B-II, C-I, D-III
02
PYQ 2023
medium
computer-science ID: cuet-ug-
Which SQL function will return the following output:
mysql> Select __?__ (53, 10); output __3 1
Truncate
2
ROUND
3
MOD
4
POW
03
PYQ 2023
medium
computer-science ID: cuet-ug-
Vardan was asked by his teacher the meaning of the following command. He is not able to decide on the correct answer. Help him in selecting the correct answer.
Select * from stud where admn like '\%5\%5\%';
Select * from stud where admn like '\%5\%5\%';
1
admn begins with two 5s
2
admn has two 5s in it at any position
3
admn ends with two 5s
4
admn should have more than two 5s
04
PYQ 2023
medium
computer-science ID: cuet-ug-
Give output of:
Select Round (765.3895, 2)
will return:
Select Round (765.3895, 2)
will return:
1
765.38
2
765.30
3
765.00
4
765.39
05
PYQ 2023
medium
computer-science ID: cuet-ug-
Single row or scalar functions are applied on a single value and return a single value.
Which of the following is NOT a Date Function?
Which of the following is NOT a Date Function?
1
DATE()
2
NOW()
3
THEN()
4
DAY()
06
PYQ 2023
medium
computer-science ID: cuet-ug-
Match List I with List II:
Choose the correct answer from the options given below:
| LIST I | LIST II |
|---|---|
| A. Alter | I. Change the name of the column |
| B. Update | II. Update existing information in a table |
| C. Delete | III. Delete an existing row from table |
| D. Create | IV. Create a database |
Choose the correct answer from the options given below:
1
A-III, B-II, C-I, D-IV
2
A-II, B-III, C-I, D-IV
3
A-I, B-III, C-II, D-IV
4
A-I, B-III, C-IV, D-II