COMPILER QUIZ 2 (III CSE C) assesses knowledge in compiler design, focusing on address codes, intermediate code forms, flow graphs, code optimizations, and control-flow-graph analysis. It's designed for third-year computer science students, enhancing understanding of compiler structures and optimization techniques.
Postfix notation
Syntax trees
Three address code
All of these
Rate this question:
Computing logical values
Used as conditional expressions
Both a &b
None of the above
Rate this question:
Encoding true & false numerically
To evaluate boolean expression analogously to an arithmetic expression
Implementing boolean expression by flow of control
All of the above
Rate this question:
Annotated parse tree
Syntax tree
Semantic tree
All of the above
Rate this question:
5 and 7
6 and 7
5 and 5
7 and 8
Rate this question:
Replacing run time computation by compile time computation
Removing common subexpression
Removing loop invariant computation
Replacing a costly operation by a relatively cheaper one
Rate this question:
Exactly 3 address
At most Three address
No unary operators
None of the mentioned
Rate this question:
Local optimization
Loop optimization
Constant folding
Strength reduction
Rate this question:
DAG
A flow graph
A graph with cycles
None of the above
Rate this question:
Tree
DAG
Graph
None of the above
Rate this question:
Backpatching
Code-generator
Parser
Static checker
Rate this question:
Quadruple
Triple
Indirect Triple
Three address code
Rate this question:
The code contains loop invariant computation
There is scope of common sub-expression elimination in this code
There is scope of strength reduction in this code
There is scope of dead code elimination in this code
Rate this question:
6
8
9
10
Loop rolling
Loop Jamming
Constant folding
None of these
Rate this question:
DAG
Flow graph
Control graph
Hamiltonian graph
Rate this question:
Run time
Compile time
Both a) and b)
None of the above
Rate this question:
Dag
Flow Graph
Control Graph
Hamilton Graph
Rate this question:
Source code
Intermediate code
Target code
All of the above
Rate this question:
Data flow analysis
Constant folding
Peep hole optimization
DFA and constant folding
Rate this question:
Is optimized to occupy less space
Is optimized to take less time for execution
Optimizes the code
All of the above
Rate this question:
Op, arg1, arg2 and result
Op1, op2, agr2 and result
Agr1, arg2 , result and op
All of d above
Rate this question:
Removal of invariant computation
Peephole optimization
Constant folding
All of these
Rate this question:
Loop optimization
Local optimization
Constant folding
Data flow analysis
Rate this question:
They enhance the portability of the compiler to other target processors
Program analysis is more accurate on intermediate code than on machine code
The information from dataflow analysis cannot otherwise be used for optimization
The information from the front end cannot otherwise be used for optimization
Rate this question:
Activation of main program
Activation of a procedure
Both a and b
None of above
Rate this question:
c = a + b t = b * e a = d – e b = d/t c = a
c = a + b d = c c = c – e a = d – e b = d/b
d = c c = c – e a = d – e b = b * e b = d/b
None of the above
Rate this question:
It is based on the syntax
Its description is independent of any implementation
It is easy to modify
All of these
Rate this question:
Local optimization
Loop optimization
Constant folding
Data flow analysis
Rate this question:
Quiz Review Timeline (Updated): Mar 14, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.