Q.1.
Match the description of several parts of a classic optimizing compiler in List - I, with the names of those parts in List - II:List - I(a) A part of a compiler that is responsible for recognizing syntax.(b) A part of a compiler that takes as input a stream of characters and produces as output a stream of words along with their associated syntactic categories.(c) A part of a compiler that understand the meanings of variable names and other symbols and checks that they are used in ways consistent with their definitions.(d) An IR-to-IR transformer that tries to improve the IR program in some way (Intermediate representation).List - II(i) Optimizer(ii) Semantic Analysis(iii) Parser(iv) ScannerCode: (a) (b) (c) (d)
Q.2.
Consider the following program fragment in assembly language. What is the value of ax and cx registers after the completion of the doloop?
Q.3.
An example of a compiler-compiler is:
Q.4.
Consider the following assembly program segment. The contents of the destination register ax (in hexadecimal) and the status of Carry Flag (CF) after the execution of above instructions are:
Q.5.
Which is the correct statement(s) for Non Recursive predictive parser?SFirst(α) = {t | α => * t β for some string β } => *tβSFollow(X) = { a | S => * αXa β for some strings α and β }
Q.6.
The ............... transfers the executable image of a C++ program from hard disk to main memory.
Q.7.
The principle of Locality of reference justifies the use of:
Q.8.
In a compiler, the task of scanning the source code, to recognize and classify various elements is known as.
Q.9.
A general macro processor is an in built function of:
Q.10.
The dynamic binding occurs during the:
Q.11.
In which way(s) a macroprocessor for assembly language can be implemented ?
Q.12.
If you want to execute more than one program at a time, the systems software that are used must be capable of:
Q.13.
In an absolute loading scheme, which loader function is accomplished by a loader?
Q.14.
Tasks done in parsing are:
Q.15.
The action of passing the source program into the proper syntactic class is known as:
Q.16.
YACC builds up ................. parsing table.
Q.17.
Consider the following left associative operators in decreasing order of precedence:– subtraction (highest precedence)* multiplication$ exponentiation (lowest precedence)What is the result of the following expression?3 – 2 * 4 $ | * 2**3