Compilers and System Programming

Covers concepts related to compilers, assemblers, linkers, language processing tools, and computer architecture fundamentals

13 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

____________ is the gap between application domain and programming language domain.

  1. Translator gap
  2. Specification gap
  3. Execution gap
  4. None of these
Question 2 Multiple Choice (Single Answer)

Which of the following rules in the analysis of the source program governs the formation of valid statements in the source language?

  1. Lexical rules
  2. Semantic rules
  3. Syntax rules
  4. None of these
Question 3 Multiple Choice (Single Answer)

Which of the following tables is used to store each label and its corresponding value?

  1. Machine-operation table
  2. Pseudo-operation table
  3. Literal table
  4. Symbol table
Question 4 Multiple Choice (Single Answer)

Which of the following types of grammars imposes no context requirements on derivations of reductions?

  1. Type-0
  2. Type-1
  3. Type-2
  4. Type-3
Question 5 Multiple Choice (Single Answer)

Which of the following Language Processor Development Tools is an automatic parser generator?

  1. LEX
  2. Compiler
  3. YACC
  4. None of these
Question 6 Multiple Choice (Single Answer)

Which of the following popular assemblers is the product of Sun Microsystems?

  1. MASM
  2. SPARC
  3. MASM32
  4. None of these
Question 7 Multiple Choice (Single Answer)

Which of the following activites is performed in the second phase of the two pass assembler?

  1. Separate the symbol, mnemonic opcode and operand fields
  2. Build the symbol table
  3. Synthesise the target program
  4. None of the above
Question 8 Multiple Choice (Single Answer)

___________ acts as an interface between the source program and the compiler in the phases of the compiler.

  1. Lexical analyzer
  2. Assembler
  3. Parser
  4. None of these
Question 9 Multiple Choice (Single Answer)

Which of the following is the address of origin, assigned by the linker while producing a machine language program?

  1. Translated origin
  2. Load origin
  3. Linked origin
  4. None of these
Question 10 Multiple Choice (Single Answer)

Which of the following represents data register in x86 family?

  1. AX
  2. BX
  3. DX
  4. CX
Question 11 Multiple Choice (Single Answer)

Which of the following programs is most often required while starting up of a computer?

  1. Linker
  2. Compiler
  3. Relocation
  4. Boot strapping
Question 12 Multiple Choice (Single Answer)

Which of the following data structures is good for doing a quick search on symbol table?

  1. Tree
  2. List
  3. Hash table
  4. None of these
Question 13 Multiple Choice (Single Answer)

___________ is a form of automatic memory management where each object has a count of the number of references to it.

  1. Java virtual machine
  2. Memory leak
  3. Reference counting
  4. None of these