Choice of Evaluation Plans

Question 1
Marks : +2 | -2
Pass Ratio : 100%
A particular sort order is said to be _________ sort order if it could be useful for a later operation.
Interesting
Reusable
Efficient
Good
Explanation:
A particular sort order is said to be interesting-sort order if it could be useful for a later operation.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
The join orders where the right operand of each join is in one of the initial relations are called as ________
Right deep join orders
Left deep join orders
Outer join orders
None of the mentioned
Explanation:
The join orders where the right operand of each join is in one of the initial relations are called as left deep join orders.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
What is the disadvantage of cost based optimizers?
It is too expensive
It is inefficient in producing results
It does not perform the desired function
None of the mentioned
Explanation:
Cost based optimizers may be expensive as exploring space of all possible plans might prove to be costly.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
The process of replacing a nested query with a query with a join is known as _________
Correlation
Decorrelation
Cache handling
Join replacement
Explanation:
The process of replacing a nested query with a query with a join is known as decorrelation. It is more complicated when the nested sub query uses aggregate functions inside it.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Optimizers use __________ to reduce the cost of optimization.
Analyzers
Statistics
Heuristics
Caches
Explanation:
Cost based optimizers may be expensive as exploring space of all possible plans might prove to be costly. So, optimizers use heuristics to reduce the cost of optimization.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Caching and reuse of query plans is called as ________
Query caching
Plan caching
Plan memorizing
None of the mentioned
Explanation:
Caching and reuse of query plans is called as plan caching. It is used because the optimal plan for the new constants may differ from the optimal plan for the initial values.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
A ________ explores the space of all query evaluation plans that are equivalent to a given query.
Cost based optimizer
Space based optimizer
Time based optimizer
None of the mentioned
Explanation:
A cost based optimizer explores the space of all query evaluation plans that are equivalent to a given query, and chooses the one with the least estimated cost.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
What technique is used for the evaluation of a query with a nested sub query?
Caching
Decorrelated evaluation
Correlated evaluation
Time based evaluation
Explanation:
The technique used to evaluate a query with a nested sub query is called as correlated evaluation. It is not very efficient as a large number of I/O operations may occur.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
State true or false: Making multiple copies of the same sub-expressions must be avoided
True
False
Explanation:
For promoting space efficiency, making multiple copies of the same sub-expressions must be avoided.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
The rule that allows transformation of a logical operation to a physical operation is called
Logical equivalence rule
Physical equivalence rule
Memory equivalence rule
None of the mentioned
Explanation:
The rule that allows transformation of a logical operation to a physical operation is called as a physical equivalence rule. It is a new class of equivalence rules.