DBI202 Final Exam |Questions with 100%
Correct Answers
The degree of a relationship is ______
Select one:
a. The number of attributes in a relation
b. The number of tuples in a relation
c. The number of binary relationships
d. The number of entities involved with the relationship - ✔️✔️d
Which of the following statements is not DML?
Select one:
a. UPDATE
b. SELECT
c. DELETE
d. CREATE - ✔️✔️d
What is a right statement?
Select one:
a. It is a aggregation relationship
b. It is a association relationship
c. It is a composition relationship
d. It is a self-association relationship - ✔️✔️b
suppose that only accept price from 1 to 100 in relation Product( Id, name, price). What relation
algebra is used to express this constraint?
Select one:
,a. sprice>=1AND price<=100 (Product)=Æ
b. sprice<1 OR price>100 (Product)=Æ
c. sprice<1 OR sprice>100 (Product)=Æ
d. sprice<1 AND sprice>100 (Product)=Æ - ✔️✔️b
Consider a relation with schema R(A, B, C, D) and FD's A -> B, A -> C, C -> D. Which of the
following is the {A}+ ?
Select one:
a. {A,B}
b. {A,B,C,D}
c. {A}
d. {A,B,C} - ✔️✔️b
Which of the following is not the extended operator of relational algebra?
Select one:
a. Sorting operators
b. Duplicate-elimination operator d
c. Extended projection
d. Natural join operators - ✔️✔️d
What will be returned when the following SQL statement is executed?Select empSSN, count(*)
as num_projecsFrom tblWorksOnGroup By empSSN;
Select one:
a. A list of each employees as well as a number of projects that he or she has joined
b. None of the others
c. A list of all employees, sorted by empSSN
d. A count of all of the projects by all employees - ✔️✔️a
, Given a relation R(A,B,C,D). Which of the followings is trivial?
Select one:
a. A->->BCD
b. A->AB
c. A->BCD
d. A->->AB - ✔️✔️a
To declare a constraint that an employee is only male or female, we use _________
Select one:
a. Attribute-based CHECK constraint
b. Not-null constraint
c. Referenced integrity constraint
d. Tuple-based CHECK constraint - ✔️✔️a
Which of the followings is not available in relational data model?
Select one:
a. Data manipulation language
b. None of the others
c. Data definition language
d. Data controlling language - ✔️✔️b
Which of the following is NOT a standard aggregation operator?
Select one:
a. GROUP
b. SUM
c. AVG
d. COUNT - ✔️✔️a
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Examcheatcode. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.