Professional Documents
Culture Documents
attributes.
A) Entity set
B) Attribute set
C) Relation set
D) Entity model
ANSWER: A
Entity is a
A) Object of relation
D) Model of relation
ANSWER: C
The descriptive property possessed by each entity set is
A) Entity
B) Attribute
C) Relation
D) Model
ANSWER: B
A) Form
B) Query
C) Macro
D) Repor
t
ANSWER: B
Which server can join the indexes when only multiple indexes combined can cover the
query?
A) SQL
B) DBMS
C) RDBMS
ANSWER: A
A) Combines the output from no more than two queries and must include the same
number of columns
B) Combines the output from no more than two queries and does not include the same
number of columns
C) Combines the output from multiple queries and must include the same number of
columns
D) Combines the output from multiple queries and does not include the same number
of columns
ANSWER: C
Select ________ dept_name from instructor; Here which of the following displays the
unique values of the column?
A) All
B) From
C) Distinct
D) Name
ANSWER: C
What type of join is needed when you wish to include rows that do not have matching
values?
A) Equi-join
B) Natural join
C) Outer join
A) Participation
B) Position
C) Role
D) Instance
ANSWER: C
SELECT * FROM teaches WHERE Sec_id = 'CS-101';Which of the following Id is selected
for the following query?
A) 1003
B) 100C) None
ANSWER: D
SELECT Id, Course_id, Building FROM SECTION s AND teaches t WHERE t.year=2009;Which
of the following Id are displayed?
A) 1003
B) 1001
ANSWER: C
The primary key in the section relation is
A) Course_id
B) Sec_id
ANSWER: C
Which one of the following can be treated as a primary key in teaches relation?
A) Id
B) Semester
C) Sec_id
D) Year
ANSWER: A
Which of the following is generally used for performing tasks like creating the
structure of the relations, deleting relation?
A) DML(Data Manipulation Language)
B) Query
C) Relational Schema
D) DDL(Data Definition Language)
ANSWER: D
The given Query can also be replaced with_______: SELECT name, course_id FROM
instructor, teaches WHERE instructor_ID= teaches_ID;
A) Select name,course_id from teaches,instructor where instructor_id=course_id;
B) Select name, course_id from instructor natural join teaches;
C) Select name, course_id from instructor;
D) Select course_id from instructor join teaches;
ANSWER: B
What do you mean by one to many relationships?
A) One class may have many teachers
B) One teacher can have many classes
C) Many classes may have many teachers
D) Many teachers may have many classes
ANSWER: B