System Programming Compiler Construction (SPCC) MCQ's




Question 1 :
An intermediate language should be


  1. Machine dependent
  2. Machine independent
  3. all operators of low level language supported
  4. close to source Language
  

Question 2 :
In a two pass assembler the object code generation is done during the ?


  1. Second pass
  2. First pass
  3. Zeroth pass
  4. Not done by assembler
  

Question 3 :
Memory unit accessed by content is called ______


  1. Secondary memory
  2. Programmable Memory
  3. Virtual Memory
  4. Associative Memory
  

Question 4 :
The optimization which avoids test at every iteration is


  1. Loop unrolling
  2. Loop jamming
  3. Constant folding
  4. Loop invariant reduction
  

Question 5 :
A system program that combines the separately compiled modules of a program into a form suitable for execution


  1. Assembler
  2. Linker
  3. Cross compiler
  4. Load and go
  

Question 6 :
Advantage of incorporating the macro-processor into pass 1 is that ____


  1. many functions have to be implemented twice
  2. more flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros.
  3. functions are combined and it is not necessary to create intermediate files as output from the macro-processor and input to the assembler.
  4. all of these
  

Question 7 :
As compared to Quadraple representation, triple structure _________


  1. reduces number of temporary symbols and is simpler than quadraple
  2. reduces number of temporary symbols but it is complex than quadraple
  3. is simple but increases number of temporary symbols
  4. is complex and increases number of temporary symbols
  

Question 8 :
Choose a string that does not belong to the language (a + bb)*.(b+aa)*


  1. abbabbbaa
  2. aabbaabb
  3. aaab
  4. abbba
  

Question 9 :
MDT is used to store


  1. Formal parameters and index numbers
  2. Actual parameters and index numbers
  3. Macro name and MDTP
  4. Definition of the Macro
  

Question 10 :
Static memory allocation is typically performed during


  1. Compilation
  2. Execution
  3. Loading
  4. Linking
  

Question 11 :
Macro is preferred when _______


  1. the code block is large and occurs only once
  2. the code block is small and repeats several times
  3. the code block is large and repeats several times
  4. the code block is small and occurs only once
  

Question 12 :
Peephole Optimization is a form of


  1. Loop optimization
  2. Local optimization
  3. Constant folding
  4. Data flow analysis
  

Question 13 :
A __________ is a system software that converts high language into machine language.


  1. Assembler
  2. Compiler
  3. Macroprocessor
  4. Loader
  

Question 14 :
The example of Application program


  1. MsWord
  2. Compiler
  3. Macroprocessor
  4. Loader
  

Question 15 :
Linking is process of binding


  1. Reference to internal data
  2. Refrence to external function only
  3. reference to external data only
  4. Reference to external data and external function
  

Question 16 :
In Absolute loading scheme, linking is done by _______


  1. Programmer
  2. Translator
  3. Linker
  4. Loader
  

Question 17 :
Which phase of the compiler is Syntax Analysis?


  1. First
  2. Second
  3. Third
  4. Fourth
  

Question 18 :
In loader functions, relocation means ________


  1. To move the program code and data into main memory
  2. To assign new address to each module whenever the program executes
  3. To change address in address sensitive instructions to load time address
  4. To move a block of program to remote machine while it is executing
  

Question 19 :
Which pseudo opcode indicates what is the base register used by the program


  1. USING
  2. START
  3. DC
  4. DS
  

Question 20 :
Which pseudo opcode indicates the list of symbols referred in the subroutine but defined in other subroutines?


  1. EXTRN
  2. ENTRY
  3. START
  4. USING
  

Question 21 :
LR stands for


  1. Left to right reading of input
  2. Left to right reduction
  3. Left most derivation in reverse
  4. Left to right reading of input and right most derivation in reverse
  

Question 22 :
Language recognized by a parser is __________


  1. Regular
  2. Context Sensitive
  3. Context Free
  4. Recursive
  

Question 23 :
Synthesized attribute can be easily simulated by a


  1. LR grammar
  2. LL grammar
  3. Ambiguous grammar
  4. Regular Grammar
  

Question 24 :
What is the input to Lex tool?


  1. Regular expression
  2. context free grammar
  3. numeric data
  4. ASCII data
  

Question 25 :
In 2 pass assemblers for IBM 360, the database that stores addresses of all registers that are available to be used as segment base is called ________


  1. Segment register table
  2. Stored register table
  3. Address table
  4. Base table
  

Question 26 :
In a two pass assembler the object code generation is done during the ?


  1. Second pass
  2. First pass
  3. Zeroeth pass
  4. Not done by assembler
  

Question 27 :
A top-down parser works on the principles of


  1. Right most derivation
  2. Rightmost derivation in reverse
  3. Leftmost derivation
  4. Leftmost derivation in reverse
  

Question 28 :
Function of ASSUME statement in 8086 ALP (Assembly Language Program) is to _____________


  1. assign initial values to variable/ memory locations
  2. map segment names to the base registers of 8086 microprocessor
  3. assume default values of registers of 8086 microprocessor
  4. assign literal values to memory locations
  

Question 29 :
An intermediate language should be


  1. Machine dependent
  2. Machine independent
  3. close to source language in terms of syntax
  4. same as assembly language of the processor
  

Question 30 :
Which pseudo opcode indicates a register of IBM 360 is available as base register?


  1. USING
  2. START
  3. DC
  4. DS
  
Pages