Compiler Design

System Programming Design System Software and CompilersCompiler Design

27 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which indicates the address of the next instruction to be executed for this process?

  1. Processor status
  2. Program counter
  3. Accounting info
  4. Pointer
  5. Process number
Question 2 Multiple Choice (Single Answer)

Which errors can occur when the program is typed onto cards?

  1. Transcription errors
  2. Syntactic errors
  3. Algorithmic errors
  4. Memory protection
  5. Dynamic errors
Question 3 Multiple Choice (Single Answer)

Which organization of symbol table includes two link fields, LEFT and RIGHT to each record?

  1. Hash table
  2. Tree
  3. Buckets
  4. Array
  5. Fixed length representation
Question 4 Multiple Choice (Single Answer)

Which allocation corresponds to memory allocated via malloc() or operator new[]?

  1. Dynamic memory allocation
  2. Stack memory allocation
  3. Static memory allocation
  4. Memory leak
  5. Memory protection
Question 5 Multiple Choice (Single Answer)

Which register always points to the start address of the TOS record?

  1. Block
  2. Activation record
  3. Activation base
  4. Pointer
  5. Accounting info
Question 6 Multiple Choice (Single Answer)

Which are common usage of dynamically link libraries, especially useful when the libraries can be replaced by other libraries with a similar interface, but different functionality?

  1. Static library
  2. Plugins
  3. Binary object file
  4. Object code
  5. Linker
Question 7 Multiple Choice (Single Answer)

Which reads a fixed location on a disk and passes control over to it?

  1. Absolute loader
  2. Boot strap loader
  3. Binary object file
  4. Fixup table
  5. Linker
Question 8 Multiple Choice (Single Answer)

In which bootstrapping, the simplest environment will be, perhaps, a very basic text editor and an assembler program?

  1. Software bootstrapping
  2. Compliler bootstrapping
  3. Absolute loader
  4. Linker
  5. Program loading
Question 9 Multiple Choice (Single Answer)

If the linked origin is 600, but the 600 memory location is occupied by some other programs then the loader generates its own address, it is called

  1. Translate origin
  2. Linked origin
  3. Library
  4. Load origin
  5. Fixup table
Question 10 Multiple Choice (Single Answer)

Which is the process of assigning load addresses to the various parts of the program, adjusting the code and data in the program to reflect the assigned addresses?

  1. Program loading
  2. Relocation
  3. Symbol resolution
  4. Stack memory allocation
  5. Static memory allocation
Question 11 Multiple Choice (Single Answer)

Which intelx86 register is the universal loop counter, like variable i in high level lngauages?

  1. Intelx86 AX
  2. Intelx86 DX
  3. Intex86 SI
  4. Macro
  5. Intelx86 CX
Question 12 Multiple Choice (Single Answer)

Which permits only some byte code sequences in valid programs?

  1. Compiler
  2. Interpreter
  3. YACC
  4. Byte code verifier
  5. Compiler bootstrapping
Question 13 Multiple Choice (Single Answer)

Which supported a wide variety of macro facilities and structured programming idioms, including high level constructions for looping, procedures calls and alternation?

  1. MASM32 assembler
  2. SPARC assembler
  3. MASM assembler
  4. YACC
  5. The object code
Question 14 Multiple Choice (Single Answer)

Which table is used to store each label and its corresponding value?

  1. Location counter
  2. Machine operation table
  3. Literal table
  4. Symbol table
  5. Fixup table
Question 15 Multiple Choice (Single Answer)

Which is a binding performed before the execution of a program begins?

  1. Dynamic binding
  2. Memory binding
  3. Memory leak
  4. Stack memory allocation
  5. Static binding
Question 16 Multiple Choice (Single Answer)

Which is to make explicit the hierarchical structure of the of the incoming token stream by identifying which parts of the token stream should be grouped together?

  1. Lexical analysis
  2. Syntax analysis
  3. Compiler
  4. Code generation
  5. Byte code verifier
Question 17 Multiple Choice (Single Answer)

Which source program is consisting of a set of regular expressions together with an action for each regular expression?

  1. YACC
  2. LEX
  3. LALR
  4. MASM32 assembler
  5. SPARC assembler
Question 18 Multiple Choice (Single Answer)

Which is the gap between application domains and programming language domains?

  1. Language processor
  2. Execution gap
  3. Semantic gap
  4. Semantics
  5. Specification gap
Question 19 Multiple Choice (Single Answer)

In which grammars, productions permit arbitrary substitution of string during derivation or reduction, hence they are not relevant to specification of programming languages?

  1. Type-1 grammars
  2. Type-0 grammars
  3. Type-2 grammars
  4. Left regular grammars
  5. Right regular grammars
Question 20 Multiple Choice (Single Answer)

Which rules associate meaning with valid statements of the language?

  1. Lexical rules
  2. Syntax rules
  3. Semantic rules
  4. Language translator
  5. Mnemonic operation codes
Question 21 Multiple Choice (Single Answer)

In which, none of whose productions contain two or more consecutive NTs in any RHS alternatives?

  1. Operator grammars
  2. Left regular grammars
  3. Type-1 grammars
  4. Right regular grammars
  5. Type-2 grammars
Question 22 Multiple Choice (Single Answer)

Which phase is concerned with the construction of target language statements which have the same meaning as a source statement?

  1. Lexical phase
  2. Parsing phase
  3. Synthesis phase
  4. Semantics
  5. Semantic gap
Question 23 Multiple Choice (Single Answer)

Which work space is used prior to actual outputting for converting the assembled instructions into the format needed by the loader?

  1. PRINT LINE
  2. Location counter
  3. Machine operation table
  4. INST
  5. PUNCH CARD
Question 24 Multiple Choice (Single Answer)

Which table indicates the symbolic mnemonic and action to be taken for each pseudo-op in pass 1?

  1. MOT
  2. LC
  3. LT
  4. POT
  5. Symbolic operands
Question 25 Multiple Choice (Single Answer)

In which memory allocation, a program can allocate or deallocate memory at arbitrary points during its execution?

  1. Automatic dynamic memory allocation
  2. Static memory allocation
  3. Stack memory allocation
  4. Programmed controlled dynamic memory allocation
  5. Memeoy leak
Question 26 Multiple Choice (Single Answer)

Which intex86 register is used for providing its value for PUSH, POP, CALL and RET instructions?

  1. Intex86 SP
  2. Intelx86 BP
  3. Intelx86 BX
  4. Intex86 SI
  5. Intex86 DX
Question 27 Multiple Choice (Single Answer)

Which register makes data operations much more size efficient, with a single byte STOS instruction to write data out of the accumulator?

  1. Intelx86 SI
  2. Intex86 DI
  3. Intelx86 AX
  4. Intex86 DX
  5. Macro