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)
  • (iii) (iv) (i) (ii)
  • (iv) (iii) (ii) (i)
  • (ii) (iv) (i) (iii)
  • All of above
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?
  • ax = FFF5 h and cx = 0 h
  • ax = FFF5 h and cx = 0A h
  • ax = FFF7 h and cx = 0A h
  • ax = FFF6 h and cx = 0 h
Q.3
An example of a compiler-compiler is:
  • JAVA
  • LEX
  • MATLAB
  • YACC
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:
  • ax = 003CH; CF = 0
  • ax = 001EH; CF = 0
  • ax = 007BH; CF = 1
  • All of above
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 β }
  • Both statements S1 and S2 are incorrect
  • S1 is incorrect and S2 is correct
  • S1 is correct and S2 is incorrect
  • Both statements S1 and S2 are correct
Q.6
The ............... transfers the executable image of a C++ program from hard disk to main memory.
  • Compiler
  • Linker
  • Debugger
  • Loader
Q.7
The principle of Locality of reference justifies the use of:
  • Virtual memory
  • Interrupts
  • Cache memory
  • All of above
Q.8
In a compiler, the task of scanning the source code, to recognize and classify various elements is known as.
  • Code Optimization
  • Syntactic Analysis
  • Lexical Analysis
  • All of above
Q.9
A general macro processor is an in built function of:
  • Loader
  • Linker
  • Editor
  • Assembler
Q.10
The dynamic binding occurs during the:
  • Compile time
  • Run time
  • Linking time
  • Both A & B
Q.11
In which way(s) a macroprocessor for assembly language can be implemented ?
  • Independent two-pass processor
  • Independent one-pass processor
  • Expand macrocalls and substitute arguments
  • All of the above
Q.12
If you want to execute more than one program at a time, the systems software that are used must be capable of:
  • word processing
  • virtual memory
  • compiling
  • multitasking
Q.13
In an absolute loading scheme, which loader function is accomplished by a loader?
  • Re-allocation
  • Allocation
  • Linking
  • Loading
Q.14
Tasks done in parsing are:
  • Check the validity of a source string
  • Determine the syntactic structure of a source string
  • Both a and b
  • None of these
Q.15
The action of passing the source program into the proper syntactic class is known as:
  • Syntax analysis
  • Lexical analysis
  • Interpretation analysis
  • Uniform symbol generation
Q.16
YACC builds up ................. parsing table.
  • LLR
  • LR
  • SLR
  • LALR
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
  • – 61
  • 64
  • 512
  • 4096
0 h : 0 m : 1 s