System Programming and Compiler Design

Comprehensive quiz covering compiler design, system software concepts, assembly language, and language processing fundamentals

22 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Type of incompatibilities between operators and operands, and between formal and actual parameters are another common source of ___________.

  1. Semantic errors
  2. Reporting errors
  3. Algorithmic errors
  4. Coding errors
  5. Transcription errors
Question 2 Multiple Choice (Single Answer)

Which of the following is suitable in situations where one has enormous amount of data to quickly search and retrieve information?

  1. Compiler symbol table
  2. Hash tables
  3. Buckets
  4. Arrays
  5. Fixed length representation
Question 3 Multiple Choice (Single Answer)

Which memory allocation corresponds to non static local variables and call by value parameter variables?

  1. Statically allocated variables
  2. Dynamic memory allocations
  3. Stack memory allocations
  4. Block
  5. Program controlled dynamic memory allocation
Question 4 Multiple Choice (Single Answer)

Which of the following is an operating system utility that copies programs from a storage device to main memory, where they can be executed?

  1. linker
  2. relocation
  3. object file program
  4. loader
  5. new()
Question 5 Multiple Choice (Single Answer)

Which of the following can also refer to the development of successively more complex, faster programming environments?

  1. Software bootstraping
  2. Compiler bootstraping
  3. Reloaction
  4. Plugins
  5. Processor status
Question 6 Multiple Choice (Single Answer)

Which of the following is the address specified by the programmer using origin statement?

  1. Linked origin
  2. Library
  3. Loading
  4. Linking
  5. Translated origin
Question 7 Multiple Choice (Single Answer)

Which of the following reads the source program one character at a time, carving the source program into a sequence of atomic units called token?

  1. Syntax analyzer
  2. Intermediate code generation
  3. Code generation
  4. Byte code verifier
  5. Lexical analyzer
Question 8 Multiple Choice (Single Answer)

Which of the following is an open set of technical specifications that any person or company can license and use to develop microprocessor and other semiconductor based device on published industry standard?

  1. SPARC assembler
  2. MASM assembler
  3. Interpreter
  4. Compiler
  5. Byte code verifier
Question 9 Multiple Choice (Single Answer)

Which of the following are used in machine instructions and eliminates the need to memorize numeric operation codes?

  1. Symbolic operand
  2. Data declaration
  3. Mnemonic operation codes
  4. Macro
  5. Local symbols
Question 10 Multiple Choice (Single Answer)

Which of the following indicates the symbolic mnemonic for each instruction and its length(two, four or six bytes)?

  1. Machine operation table
  2. Symbol table
  3. Location counter
  4. Pseudo operation table
  5. Symbolic operand
Question 11 Multiple Choice (Single Answer)

Which of the following allows a user to specify a possibly ambiguous grammer along with precedence and associativity information about operators?

  1. Lex
  2. Yacc
  3. MASM assembler
  4. Syntax analyzer
  5. Byte code verifier
Question 12 Multiple Choice (Single Answer)

Which of the following is a binding performed after the execution of a program has begun?

  1. Dynamic binding
  2. Static binding
  3. Code generation
  4. Relocation
  5. Memory binding
Question 13 Multiple Choice (Single Answer)

Which of the following identifies the sequence of actions necessary to implement the meaning of a source statement?

  1. Lexical analysis
  2. Semantic analysis
  3. Syntax analysis
  4. Phase
  5. Pass
Question 14 Multiple Choice (Single Answer)

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

  1. Syntax rules
  2. Lexical rules
  3. Semantic rules
  4. Language processing
  5. Pass
Question 15 Multiple Choice (Single Answer)

Which of the following grammars impose no context requirement on derivations or reductions?

  1. Operator grammars
  2. Left linear grammar
  3. Type-2 grammar
  4. Right linear grammar
  5. Binding
Question 16 Multiple Choice (Single Answer)

Which of the following is a gap between the semantics of programs, written in different programming languages?

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

Which of the following is used to store numbers, constants, differences encountered and their corresponding assignment locations?

  1. Symbol table
  2. Literal table
  3. Location counter
  4. Pseudo operation table
  5. Symbolic operands
Question 18 Multiple Choice (Single Answer)

Which of the following grammars production specifies that derivation or reduction of strings can take place only in specific contexts?

  1. Left linear grammar
  2. Operator grammar
  3. Type-1 grammar
  4. Right regular grammar
  5. Binding
Question 19 Multiple Choice (Single Answer)

Which of the following has been designed to look familiar to a programmer, who has already written API based code in Windows?

  1. MASM32 assembler
  2. MASM assembler
  3. Yacc
  4. Interpreter
  5. Byte code verifier
Question 20 Multiple Choice (Single Answer)

Which of the following is a collection of object files that contains library routines and data?

  1. Static library
  2. Shared library
  3. Plugins
  4. Relocation
  5. Program loading
Question 21 Multiple Choice (Single Answer)

Which of the following is a particular kind of unintentional memory consumption by a computer program, where the program fails to release memory when no longer needed?

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

Missing right paranthesis, extraneous comma, colon in place of semicolon, misspelled keyword and an extra blank are the examples of __________.

  1. algorithmic errors
  2. dynamic errors
  3. transcription errors
  4. syntaxtical errors
  5. reporting errors