Question
I. 2x² - 15x  + 13 = 0 II. 3y² - 6y + 3 =
0Solution
I. 2 x ² - 15 x  + 13=0 2 x ² - 2 x - 13 x  + 13= 0 2 x  ( x  – 1) – 13 ( x – 1) (2 x – 13) ( x  – 1) = 0 x = 1, 13/2 II. 3 y ² - 6 y  + 3 = 0 3 y ² - 3 y  - 3 y + 3 = 0 3 y ( y – 1) - 3 ( y  – 1) (3 y – 3) ( y – 1) = 0  y = 1, 1  Hence, x ≥ y
Which of the following tools is commonly used to generate a lexical analyzer (scanner) from a set of regular expressions?
A "shift/reduce conflict" in an LR parsing table occurs when:
What is the primary output of the parsing phase in a compiler?
"Liveness analysis" in code optimization determines:
Which phase of a compiler is responsible for creating a stream of tokens from the input source code?
Which phase of the compiler checks the type consistency of the program?
Which of the following is NOT a type of intermediate code?
Which optimization technique involves replacing a sequence of instructions with a shorter or faster sequence, often by looking at a small "window" of in...
Which statement about intermediate code is TRUE?
What is the primary output of the lexical analysis phase of a compiler?