My Report

Database Management System Mock Test 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1.

Select * from employee where salary>10000 and dept_id=101;

Which of the following fields are displayed as output?

Question 1 of 10

Question 2 of 10

2. For like predicate which of the following is true.

i) % matches zero of more characters.
ii) _ matches exactly one character.

Question 2 of 10

Question 3 of 10

3. In SQL the spaces at the end of the string are removed by _______ function.

Question 3 of 10

Question 4 of 10

4. The subset of a super key is a candidate key under what condition?

Question 4 of 10

Question 5 of 10

5. In an employee table to include the attributes whose value always have some value which of the following constraint must be used?

Question 5 of 10

Question 6 of 10

6. A _________ integrity constraint requires that the values appearing in specified attributes of any tuple in the referencing relation also appear in specified attributes of at least one tuple in the referenced relation.

Question 6 of 10

Question 7 of 10

7. The term attribute refers to a ___________ of a table.

Question 7 of 10

Question 8 of 10

8. Aggregate functions are functions that take a ___________ as input and return a single value.

Question 8 of 10

Question 9 of 10

9. _____ operator is used for appending two strings.

Question 9 of 10

Question 10 of 10

10. A ________ is a pictorial depiction of the schema of a database that shows the relations in the database, their attributes, and primary keys and foreign keys.

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.