System Programming And Compiler Construction MCQ



Question 1 : 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 2 : The number of tokens in the C statement sum = sum + i ; is

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

Question 3 : 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 4 : 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 5 : 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 6 : 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 7 : Type checking is normally done during

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

Question 8 : 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 9 : Language recognized by a parser is __________

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

Question 10 : Binder does not perform the function of ______

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

Question 11 : 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 12 : 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 13 : 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 14 : 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 15 : Choose a string that does not belong to the language (a + bb)*.(b+aa)*

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

Question 16 : 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 17 : 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
    

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

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

Question 19 : 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 20 : A software that helps programmer in finding logical errors in program through partial execution is _______

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

Question 21 : 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 22 : The optimization which avoids test at every iteration is

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

Question 23 : Statements supported by conditional macro processor are

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

Question 24 : Predictive parser is a _____ parser

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

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

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

Question 26 : 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 27 : 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 28 : Which phase of the compiler is Syntax Analysis?

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

Question 29 : 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 30 : Register allocation is carried out by ____________

  1. Scanner
  2. Optimizer
  3. Semantic Analyzer
  4. Code Generator
    
  • chevron_left
  • 1
  • 2
  • chevron_right