28th
Dec
Compiler Design MCQ

Compiler Design MCQ

  • Admin
  • 28th Dec, 2020
  • 637 Followers

Compiler Design MCQ Quiz

1) Pee Hole optimization __________

  • A. Constant folding
  • B. Loop Optimization
  • C. Local Optimization
  • D. Data Flow analysis

2) A relocatable program form is one which

  • A. cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation
  • B. consists of a program and relevant information for its relocation
  • C. can be processed to relocate it to a desired area of memory
  • D. all of these

3) Which of the following module does not incorporate initialization of values changed by the module ?

  • A. serially reusable module
  • B. non reusable module
  • C. re-enterable module
  • D. all of these

4) The segment base is specified using the register named is?

  • A. SEGMENT instruction
  • B. ASSUME instruction
  • C. ORG instructions
  • D. TITLE instruction

5) Advantage of panic mode of error recovery is that

  • A. it is simple to implement
  • B. it never gets into an infinite loop
  • C. both (a) and (b)
  • D. none of these
Download Free : Compiler Design MCQ PDF

6) Which of the following is the fastest logic?

  • A. TTL
  • B. CMOS
  • C. ECL
  • D. LSI

7) Which is the most powerful parser?

  • A. Canonical LR
  • B. LALR
  • C. SLR
  • D. Operator Precedence

8) A latch is constructed using which two cross coupled?

  • A. AND gates
  • B. NAND and NOR gates
  • C. AND OR gates
  • D. NAND gates

9) Which table is a permanent database that has an entry for each terminal symbol?

  • A. Identifier Table
  • B. Terminal Table
  • C. Literal Table
  • D. None of the mentioned

10) Which is not true about syntax and semantic parts of a computer language?

  • A. Semantics is checked mechanically by a computer
  • B. Semantics is the responsibility of the programmer
  • C. All of the mentioned
  • D. None of the mentioned

11) Compiler translates the source code to

  • A. Both B and C
  • B. Executable code
  • C. Binary code
  • D. Machine code

12) The identification of common sub-expression and replacement of run-time computations by compile-time computations is

  • A. loop optimization
  • B. local optimization
  • C. Constant folding
  • D. data flow analysis

13) An intermediate code form is ___________

  • A. Three address code
  • B. Postfix Notation
  • C. Syntax Trees
  • D. All of the mentioned

14) The graph that shows basic blocks and their successor relationship is called

  • A. DAG
  • B. control graph
  • C. Flow graph
  • D. Hamiltonion graph

15) The specific task storage manager performs ____________

  • A. Allocation/ deal location of programs
  • B. Allocation/ deal location of programs & protection of storage area assigned to the program
  • C. Protection of storage area assigned to the program
  • D. none of the mentioned

16) The segment base is specified using the register named is?

  • A. SEGMENT instruction
  • B. ASSUME instruction
  • C. ORG instructions
  • D. TITLE instruction

17) Software that measures, monitors, and controls events are ___________

  • A. Real Time software
  • B. Scientific software
  • C. System S/w
  • D. Business Software

18) Scissoring enables

  • A. entire data to be displayed
  • B. full data display on full area of screen
  • C. a part of data to be displayed
  • D. no data to be displayed

19) What is the output of lexical analyzer?

  • A. Set of Token
  • B. A set of regular expression
  • C. Syntax tress
  • D. String of Characters

20) A series of statements explaining how the data is to be processed is called _________

  • A. Assembly
  • B. Program
  • C. Assembly
  • D. Machine

21) Three address code invloves

  • A. exactly 3 address
  • B. at the most 3 address
  • C. no unary operators
  • D. none of these

22) YACC builds up __________

  • A. Canonical LR parsing table
  • B. SLR parsing table
  • C. LALR parsing table
  • D. None of the mentioned

23) Which of these is also known as look-head LR parser?

  • A. LLR
  • B. LR
  • C. SLR
  • D. None of the mentioned

24) The table created by lexical analysis to describe all literals used in the source program is

  • A. Identifier table
  • B. Terminal table
  • C. Literal table
  • D. Reductions

25) Relocation bits used by relocating loader are specified by

  • A. relocating loader itself
  • B. assembler
  • C. linker
  • D. macro processor

26) Input to code generator is __________

  • A. Intermediate code
  • B. Source code
  • C. Target code
  • D. All of the mentioned

27) What is the output of lexical analyzer?

  • A. Intermediate code
  • B. A parse tree
  • C. A list of tokens
  • D. Machine code

28) Inherited attribute is a natural choice in ___________

  • A. Variable declarations record is maintained
  • B. L values and R values
  • C. All of the mentioned
  • D. None of the mentioned

29) The linker __________

  • A. Is similar to interpreter
  • B. Is required to create a load module
  • C. Uses source code as its input
  • D. None of the mentioned

30) Shift reduce parsers are __________

  • A. May be top down or bottom up
  • B. Top down Parser
  • C. Bottom Up parser
  • D. None of the mentioned

31) The method which merges the bodies of two loops is?

  • A. Loop jamming
  • B. Loop rolling
  • C. Constant folding
  • D. None of the mentioned

32) Which loader function is accomplished by loader?

  • A. Loading
  • B. Linking
  • C. Reallocation
  • D. Allocation

33) Which of the following groups is/are token together into semantic structures?

  • A. Semantic analyzer
  • B. Is similar to interpreter
  • C. Intermediate code generation
  • D. Lexical analyzer

34) _____________ is a graph representation of a derivation.

  • A. Oct tree
  • B. Binary tree
  • C. The parse tree
  • D. None of the mentioned

35) Function of the storage assignment is

  • A. assign storage to all variables referenced in the source program
  • B. assign storage to all temporary locations that are necessary for intermediate results
  • C. assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized
  • D. all of these

36) Running time of a program depends on __________

  • A. Addressing mode
  • B. Order of computations
  • C. The usage of machine idioms
  • D. All of the mentioned

37) Relocation bits used by relocating loader are specified by

  • A. external data segments
  • B. external sub-routines
  • C. data located in other procedure
  • D. all of these

38) The identification of common sub-expression and replacement of run-time computations by compile-time computations is

  • A. loop optimization
  • B. local optimization
  • C. Constant folding
  • D. data flow analysis

39) In which of the following no information hiding is done ?

  • A. compile prog 1, prog 2
  • B. run test, prog
  • C. load R1 , A
  • D. 001001000010101

40) Which of the following is a phase of a compilation process?

  • A. Lexical Analysis & Code Generation
  • B. Lexical Analysis
  • C. Code Generation
  • D. None of the mentioned

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Dec
Laravel MCQ
01st
Dec
React JS MCQ
01st
Jan
AngularJs MCQ
01st
Jul
Node js MCQ
01st
Jul
Angular 2 MCQ
01st
Jul
JSON MCQ