This set of Advanced Database Management System focuses on Relational Algebra MCQs (Multiple Choice Questions and Answers).

PRACTICE IT NOW TO SHARPEN YOUR CONCEPT AND KNOWLEDGE

view hide answers

1. The relational Algebra is a ____________ Query language.

  • Structured
  • Procedural
  • Logical
  • Relational

2. Which of the following are the fundamental operations in the Relational Algebra?

  • Select and Project
  • Project and Cartesian product
  • Union and set Difference
  • All of the Above

3. The select, project and rename operations are called____

  • Binary operations
  • Ternary Operations
  • Unary operations
  • None of the above.

4. Which of the following is the Binary Operations?

  • Set difference, Union, Project
  • Rename, union, Set difference
  • Cartesian product, Set difference and project
  • Cartesian product, union, set difference

5. The select operation selects tuples that satisfy a given predicate. We use the lowercase______ to denote selection

  • Greek letter rho (ρ)
  • Greek letter Pi (π)
  • Greek letter sigma (σ)
  • Greek letter sigma (ρ)

6. Suppose we want to list all loan numbers and the amount of the loans, but do not care about the branch name. Which of the following operation allows us to produce this relation?

  • Set difference
  • Union
  • Cartesian product
  • Project

7. The Project operation selects tuples with some attributes that we wish to include but some attribute we do not want to include in the final relation. We use the lowercase______ to denote Project operation.

  • Greek letter rho (ρ)
  • Greek letter Pi (π)
  • Greek letter sigma (σ)
  • Greek letter sigma (ρ)

8. The Binary operation Union, denoted, as in the set theory by _____

  • U
  • ρ
  • σ
  • π

9. If we want to include attributes from two different relations, which of the following operations is needed?

  • Set difference
  • Union
  • Cartesian product
  • Projection

10. Which of the following operation allows us to find the tuples that are in one relation but are not in another relation?

  • Set difference
  • Union
  • Cartesian product
  • Set intersection

11. Which of the following operation, denoted by cross (×), allows to combine the information from any two relation.

  • Set difference
  • Union
  • Cartesian product
  • Set intersection

12. Suppose we wish to find all customers who have both a loan and an account. Which of the following operation allows us to produce this relation?

  • Set difference
  • Union
  • Cartesian product
  • Set intersection or set difference

13. Which of the following operation that allows us to combine certain selections and a Cartesian product into one operation?

  • Set-intersection operation
  • Natural-Join operation
  • Division operation
  • Assignment operation

14. Natural join operation is denoted by symbol____

  • U
  • ρ
  • σ

15. It is convenient at times to write a relational algebra expression by assigning parts of it to temporary relation variables. Which of the following operation will be used for that?

  • Division
  • Addition
  • Assignment
  • Subtraction

16. Which of the following symbol can be used for Assignment operation in the relational algebra expression?

  • =
  • =+
  • ==

17. Which of the following take a collection of values and return a single value as a result?

  • Join Operation
  • Generalized Projection
  • Aggregate Function
  • All of the above

18. Which of the following operation behave just like join operations except on tuples that do not occur in the join results?

  • Outer join
  • Generalized Projection
  • Projection
  • Union, intersection, difference

19. Which of the following Statements stands true for Left outer-join?
  1. The left outer join takes all tuples in the left relation that did not match with any tuple in the right relation, pads the tuples with null values for all other attributes from the right relation, and add them to the result of the natural join.
  2. It pads tuples from the right relation that did not match any from the left relation with nulls and adds them to the result of the natural join.
  3. it pads tuples from the left relation that did not match any from the right relation,as well as tuples from the right relation that did not match any from the left relation,abd adding them to the result of join
  4. It takes all tuples in the right relation that did not match with any tuple in the right relation, pads the tuples with null values for all other attributes from the right relation, and add them to the result of the natural join.

  • Only 1
  • Only 2
  • 1 and 2
  • only 4

20. Which of the following Statements stands true for Right outer-join?
  1. The left outer join takes all tuples in the left relation that did not match with any tuple in the right relation, pads the tuples with null values for all other attributes from the right relation, and add them to the result of the natural join.
  2. It pads tuples from the right relation that did not match any from the left relation with nulls and adds them to the result of the natural join.
  3. it pads tuples from the left relation that did not match any from the right relation, as well as tuples from the right relation that did not match any from the left relation, and adding them to the result of join
  4. It takes all tuples in the right relation that did not match with any tuple in the right relation, pads the tuples with null values for all other attributes from the right relation, and add them to the result of the natural join.

  • Only 1
  • Only 2
  • 1 and 2
  • only 4

21. Which of the following Statements stands true for Full outer-join?
  1. The left outer join takes all tuples in the left relation that did not match with any tuple in the right relation, pads the tuples with null values for all other attributes from the right relation, and add them to the result of the natural join.
  2. It pads tuples from the right relation that did not match any from the left relation with nulls and adds them to the result of the natural join.
  3. it pads tuples from the left relation that did not match any from the right relation, as well as tuples from the right relation that did not match any from the left relation, and adding them to the result of join
  4. It takes all tuples in the right relation that did not match with any tuple in the right relation, pads the tuples with null values for all other attributes from the right relation, and add them to the result of the natural join.

  • Only 1
  • Only 2
  • 1 and 2
  • only 3
Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook