System Programming Compiler Construction (SPCC) MCQ's




Question 31 :
Register allocation is carried out by ____________


  1. Scanner
  2. Optimizer
  3. Semantic Analyzer
  4. Code Generator
  

Question 32 :
Which of the following comment about peep-hole optimization is true?


  1. It is applied to small part of the code and applied repeatedly
  2. It is applied to optimize large loops that do not fit in memory
  3. It can be applied to a portion of the code that is not contiguous
  4. It is applied in symbol table to optimize the memory requirements
  

Question 33 :
Type checking is normally done during


  1. Lexical Analysis
  2. Syntax Analysis
  3. Syntax Directed Translation
  4. Code optimization
  

Question 34 :
A pseudo opcode that maps symbol in label field to the absolute value present in operand field is ______


  1. DC
  2. EQU
  3. MAP
  4. ABS
  

Question 35 :
A software that helps programmer in finding logical errors in program through partial execution is _______


  1. Debugger
  2. Compiler
  3. Linker
  4. Editor
  

Question 36 :
Dummy arguments in macros can be identified by symbol........


  1. * (Asterisk)
  2. # (Hash)
  3. -(Ampersand)
  4. !(Exclamatory)
  

Question 37 :
First step of SLR parser is _________.


  1. Remove Left recursion
  2. Apply left factoring
  3. Augmentation
  4. Expansion
  

Question 38 :
A model statement contains call for another macro is called as


  1. referential macro call
  2. nested macro call
  3. inbuilt macro call
  4. inherited macro call
  

Question 39 :
Predictive parser is a _____ parser


  1. LL(0)
  2. LL(1)
  3. LR(0)
  4. LR(1)
  

Question 40 :
Macro prototype statement specifies the.........


  1. Definition of the Macro
  2. Name of the Macro and list of formal parameters
  3. Call of Macro
  4. Macro substitution
  

Question 41 :
The number of tokens in the C statement sum = sum + i ; is


  1. 3
  2. 4
  3. 5
  4. 6
  

Question 42 :
Instructions which do not occupy space in the object program are called _____ .


  1. Declarative statements
  2. Imperative statements
  3. Assembler Directives
  4. No Operation (NOP)
  

Question 43 :
TEXT cards contain information about


  1. All symbols that are defined in this program that may be referenced elsewhere - all symbols referenced in this program but defined elsewhere.
  2. Actual Object code translated version of source program
  3. Those Location in the program whose content depend on the address at which program is placed
  4. End of Object Deck
  

Question 44 :
Binder does not perform the function of ______


  1. Allocation
  2. Relocation
  3. Linking
  4. Loading
  

Question 45 :
The working of Compiler and interpreter are


  1. Same
  2. not related
  3. Compiler works on an entire program and converts it into object code, while interpreter works line by line
  4. Interpreter is faster and compiler is slower
  

Question 46 :
Statements supported by conditional macro processor are


  1. AIF
  2. AGO
  3. Both AIF and AGO
  4. Neither AIF nor AGO
  

Question 47 :
Which of the following parser is most powerful?


  1. Shift Reduce
  2. Canonical LR
  3. SLR
  4. LALR
  

Question 48 :
Aging registers’ are _______


  1. Counters which indicate how long ago their associated pages have been Referenced
  2. Registers which keep track of when the program was last accessed
  3. counters to keep track of last accessed instruction
  4. Counters to keep track of the latest data structures referred
  

Question 49 :
Which of the following grammar rules violate the requirements of an operator grammar ? P, Q, R are nonterminals, and r, s, t are terminals. 1. P → Q R 2. P → Q s R 3. P → ε 4. P → Q t R r


  1. 1 only
  2. 1 and 3 only
  3. 2 and 3 only
  4. 1,2,3
  

Question 50 :
In Direct linking loader, absolute (load time) address of all modules and publicly available symbols (symbols accessible to all modules) is stored in _________


  1. ESD
  2. GEST
  3. LESA
  4. RLD
  
Pages