0% found this document useful (0 votes)
17 views2 pages

Class 12 Informatics Practices-5

The document contains multiple-choice questions (MCQs) related to SQL functions for Class 12 Informatics Practices. Key functions covered include COUNT(), AVG(), MAX(), and CONCAT(), along with their respective answers. It serves as a study guide for understanding SQL functions and their applications.

Uploaded by

hari2732120
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Class 12 Informatics Practices-5

The document contains multiple-choice questions (MCQs) related to SQL functions for Class 12 Informatics Practices. Key functions covered include COUNT(), AVG(), MAX(), and CONCAT(), along with their respective answers. It serves as a study guide for understanding SQL functions and their applications.

Uploaded by

hari2732120
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Class 12 Informatics Practices

SQL Functions – MCQs


1. Which SQL function is used to count the number of rows in a table?
A) SUM()
B) COUNT()
C) TOTAL()
D) NUMBER()
Answer: B) COUNT()

2. What will the function AVG(SALARY) return?


A) The maximum salary
B) The total of all salaries
C) The average of all salaries
D) The number of employees
Answer: C) The average of all salaries

3. Which of the following is not a group function in SQL?


A) MAX()
B) UPPER()
C) MIN()
D) COUNT()
Answer: B) UPPER()

4. Which SQL function returns the largest value in a column?


A) MAX()
B) HIGH()
C) LARGE()
D) TOP()
Answer: A) MAX()

5. What is the output of SELECT LENGTH('Informatics');?


A) 11
B) 10
C) 12
D) 9
Answer: A) 11

6. Which function is used to convert a string to lowercase in SQL?


A) LCASE()
B) LOWER()
C) TO_LOWER()
D) DOWNCASE()
Answer: B) LOWER()

7. What will ROUND(123.4567, 2) return?


A) 123.45
B) 123.46
C) 123.4
D) 123.47
Answer: B) 123.46

8. Which function gives the remainder after division in SQL?


A) REMAINDER()
B) DIV()
C) MOD()
D) REM()
Answer: C) MOD()

9. Which SQL function returns the smallest value in a column?


A) LOWEST()
B) MIN()
C) LEAST()
D) SMALLEST()
Answer: B) MIN()

10. What does the CONCAT() function do in SQL?


A) It joins two or more tables
B) It calculates average
C) It joins two or more strings
D) It filters rows
Answer: C) It joins two or more strings

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy