Query Optimization MCQ
Query Optimization MCQ
A. Result
B. Inhibition
C. System
D. Processing
Answer: D) Processing
Explanation:
2. Data is ___ from the database using various steps in query processing.
A. Extracted
B. Added
C. Fetched
D. Deleted
Answer: C) Fetched
Explanation:
Data is fetched from the database using various steps in query processing.
3. How many steps are involved in fetching the data from the database in
query processing?
A. 1
B. 2
C. 3
D. 4
Answer: C) 3
Explanation:
There are 3 steps involved in fetching the data from the database in query
processing.
4. What is/are the step(s) involved in fetching the data from the database
in query processing?
Explanation:
The steps involved in fetching the data from the database in query processing
are -
5. Initial queries from users are translated into a ____ database language
such as SQL.
A. Low-level
B. Medium-level
C. High-level
D. None
Answer: C) High-level
Explanation:
Initial queries from users are translated into a high-level database language
such as SQL.
6. The queries are translated into ___ expressions at the level of the file
system, which are used there as well.
A. Virtual
B. Real
C. Physical
D. None
Answer: C) Physical
Explanation:
The queries are translated into physical expressions at the level of the file
system, which are used there as well.
7. As soon as the queries are translated, they are evaluated and various
___ transformations are performed.
A. Query-realizing
B. Query-optimizing
C. Query-deoptimizing
D. Query-deletion
Answer: B) Query-optimizing
Explanation:
As soon as the queries are translated, they are evaluated and various query-
optimizing transformations are performed.
Discuss this Question
A. Need not to
B. Must
C. Can
D. Maybe
Answer: C) Can
Explanation:
9. Query languages such as SQL are best suited for humans, however, it is
not best suited for the ____ of queries to a system.
A. Temptation
B. Processing
C. Transmission
D. None
Answer: C) Transmission
Explanation:
Query languages such as SQL are best suited for humans, however, it is not
best suited for the transmission of queries to a system.
Answer: B) Internal
Explanation:
A. Transmission
B. Translation
C. Transfusion
D. Transcreation
Answer: B) Translation
Explanation:
12. A user executes a query which the ___ in the system uses to generate
the internal form of the query. In addition to checking the syntax of the
query, the ____ verifies the name of the relation in the database, then the
tuple, then the attribute value.
A. Parser
B. Translation
C. Optimization
D. Evaluation
Answer: A) Parser
Explanation:
A user executes a query which the parser in the system uses to generate the
internal form of the query. In addition to checking the syntax of the query, the
parser verifies the name of the relation in the database, then the tuple, then
the attribute value.
A. Parse-tree
B. Query-tree
C. Tree
D. None
Answer: A) Parse-tree
Explanation:
A. Analytical algebra
B. Relational algebra
C. Both A and B
D. None of the above
Explanation:
To evaluate the translated relational algebra expression, it must be annotated
with the instructions used to specify and evaluate each operation along with
the translation.
15. The system must create a query ____ plan before it can fully evaluate a
query.
A. Optimization
B. Parser
C. Translation
D. Evaluation
Answer: D) Evaluation
Explanation:
The system must create a query evaluation plan before it can fully evaluate a
query.
A. Index
B. Operation
C. Both A and B
D. None of the above
Explanation:
A. Primitives
B. Optimization
C. Advancement
D. None
Answer: A) Primitives
Explanation:
18. In the primitives for ____, all instructions necessary for an operation's
____ are contained.
A. Parser
B. Translation
C. Evaluation
D. Optimization
Answer: C) Evaluation
Explanation:
A. Query
B. Data
C. Log
D. Array
Answer: A) Query
Explanation:
Query evaluation plans describe the underlying primitive operations that are
used to evaluate a query.
20. Query evaluation plans are also known as query ____ plans.
A. Execution
B. Enumeration
C. Eternal
D. None
Answer: A) Execution
Explanation:
Explanation:
To generate the output of a query, a query execution engine is responsible.
22. In the end, it makes the user's query ____ after taking the query
execution plan, executing it, and finally making the ____.
A. Input
B. Output
C. Query
D. Log
Answer: B) Output
Explanation:
In the end, it makes the user's query output after taking the query execution
plan, executing it, and finally making the output.
Explanation:
A. Query evaluation
B. Query optimization
C. Query parser
D. Query translation
Explanation:
25. It is mandatory that the query ___ has an estimate of each operation's
cost when optimizing a query.
A. Evaluator
B. Optimizer
C. Parser
D. Translator
Answer: B) Optimizer
Explanation:
A. Execution
B. Allocation
C. Operation
D. None
Answer: C) Operation
Explanation:
Costs of memory allocation, execution, and so on are factors that impact the
overall operation cost.
A. Query plan
B. Evaluation plan
C. System plan
D. Output plan
Explanation: