My Report

Database Management System Practice 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

1. 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.

2. For each attribute of a relation, there is a set of permitted values, called the ________ of that attribute.

3.

Select dept_name, ID, avg (salary)
from instructor
group by dept_name;
This statement is erroneous because 

4.

Select emp_name
from department
where dept_name like ’ _____ Computer Science’;

Which one of the following has to be added into the blank to select the dept_name which has Computer Science as its ending string?

5.

Name
Annie
Bob
Callie
Derek

Which of these query will display the the table given above ?

6. If the attribute phone number is included in the relation all the values need not be entered into the phone number column. This type of entry is given as

7. Course(course_id,sec_id,semester)
Here the course_id,sec_id and semester are __________ and course is a _________

8. The relation with the attribute which is the primary key is referenced in another relation. The relation which has the attribute as a primary key is called ______________

9. Which of the following statements contains an error?

10.

Employee_id Name Salary
1001 Annie 6000
1009 Ross 4500
1018 Zeith 7000

This is Employee table.
Which of the following employee_id will be displayed for the given query?

Select * from employee where employee_id>1009;

 

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.