Compiler Design
System Programming Design System Software and CompilersCompiler Design
Questions
Which indicates the address of the next instruction to be executed for this process?
- Processor status
- Program counter
- Accounting info
- Pointer
- Process number
Which errors can occur when the program is typed onto cards?
- Transcription errors
- Syntactic errors
- Algorithmic errors
- Memory protection
- Dynamic errors
Which organization of symbol table includes two link fields, LEFT and RIGHT to each record?
- Hash table
- Tree
- Buckets
- Array
- Fixed length representation
Which allocation corresponds to memory allocated via malloc() or operator new[]?
- Dynamic memory allocation
- Stack memory allocation
- Static memory allocation
- Memory leak
- Memory protection
Which register always points to the start address of the TOS record?
- Block
- Activation record
- Activation base
- Pointer
- Accounting info
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?
- Static library
- Plugins
- Binary object file
- Object code
- Linker
Which reads a fixed location on a disk and passes control over to it?
- Absolute loader
- Boot strap loader
- Binary object file
- Fixup table
- Linker
In which bootstrapping, the simplest environment will be, perhaps, a very basic text editor and an assembler program?
- Software bootstrapping
- Compliler bootstrapping
- Absolute loader
- Linker
- Program loading
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
- Translate origin
- Linked origin
- Library
- Load origin
- Fixup table
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?
- Program loading
- Relocation
- Symbol resolution
- Stack memory allocation
- Static memory allocation
Which intelx86 register is the universal loop counter, like variable i in high level lngauages?
- Intelx86 AX
- Intelx86 DX
- Intex86 SI
- Macro
- Intelx86 CX
Which permits only some byte code sequences in valid programs?
- Compiler
- Interpreter
- YACC
- Byte code verifier
- Compiler bootstrapping
Which supported a wide variety of macro facilities and structured programming idioms, including high level constructions for looping, procedures calls and alternation?
- MASM32 assembler
- SPARC assembler
- MASM assembler
- YACC
- The object code
Which table is used to store each label and its corresponding value?
- Location counter
- Machine operation table
- Literal table
- Symbol table
- Fixup table
Which is a binding performed before the execution of a program begins?
- Dynamic binding
- Memory binding
- Memory leak
- Stack memory allocation
- Static binding
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?
- Lexical analysis
- Syntax analysis
- Compiler
- Code generation
- Byte code verifier
Which source program is consisting of a set of regular expressions together with an action for each regular expression?
- YACC
- LEX
- LALR
- MASM32 assembler
- SPARC assembler
Which is the gap between application domains and programming language domains?
- Language processor
- Execution gap
- Semantic gap
- Semantics
- Specification gap
In which grammars, productions permit arbitrary substitution of string during derivation or reduction, hence they are not relevant to specification of programming languages?
- Type-1 grammars
- Type-0 grammars
- Type-2 grammars
- Left regular grammars
- Right regular grammars
Which rules associate meaning with valid statements of the language?
- Lexical rules
- Syntax rules
- Semantic rules
- Language translator
- Mnemonic operation codes
In which, none of whose productions contain two or more consecutive NTs in any RHS alternatives?
- Operator grammars
- Left regular grammars
- Type-1 grammars
- Right regular grammars
- Type-2 grammars
Which phase is concerned with the construction of target language statements which have the same meaning as a source statement?
- Lexical phase
- Parsing phase
- Synthesis phase
- Semantics
- Semantic gap
Which work space is used prior to actual outputting for converting the assembled instructions into the format needed by the loader?
- PRINT LINE
- Location counter
- Machine operation table
- INST
- PUNCH CARD
Which table indicates the symbolic mnemonic and action to be taken for each pseudo-op in pass 1?
- MOT
- LC
- LT
- POT
- Symbolic operands
In which memory allocation, a program can allocate or deallocate memory at arbitrary points during its execution?
- Automatic dynamic memory allocation
- Static memory allocation
- Stack memory allocation
- Programmed controlled dynamic memory allocation
- Memeoy leak
Which intex86 register is used for providing its value for PUSH, POP, CALL and RET instructions?
- Intex86 SP
- Intelx86 BP
- Intelx86 BX
- Intex86 SI
- Intex86 DX
Which register makes data operations much more size efficient, with a single byte STOS instruction to write data out of the accumulator?
- Intelx86 SI
- Intex86 DI
- Intelx86 AX
- Intex86 DX
- Macro