System Programming And Compiler Construction MCQ



Question 31 : The example of Application program

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

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

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

Question 33 : 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 34 : What is the input to Lex tool?

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

Question 35 : Synthesized attribute can be easily simulated by a

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

Question 36 : 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 37 : First step of SLR parser is _________.

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

Question 38 : 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 39 : Peephole Optimization is a form of

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

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

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

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

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

Question 42 : Memory unit accessed by content is called ______

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

Question 43 : Static memory allocation is typically performed during

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

Question 44 : 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 45 : 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 46 : 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 47 : 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 48 : 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 49 : 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 50 : A __________ is a system software that converts high language into machine language.

  1. Assembler
  2. Compiler
  3. Macroprocessor
  4. Loader
    
  • chevron_left
  • 1
  • 2
  • chevron_right