Loading, please wait ...
Open its course - Compiler Construction

Introduction to Compiler Construction

To be...
View Complete Description
×

Topic Summary

To be updated soon
Topic Questions:
32
MCQs T/F FiB SQ
32 0 0 0
Question Type Legends

Easy

Medium

Difficult
Open its course - Compiler Construction

Multiple Choice Questions for Introduction to Compiler Construction

  • ×

    Hidden Questions!

    Some MCQs are not visible. Usually teachers hides their visibility if they are few in number. Subject Expert recommends them to have more than 70+ questions against the topic and make them public.

  • 1 One of the best known examples of how compilers influenced the design of computer architecture was the invention of the _____________ architecture
    1. CISC (Complex Instruction-Set Computer)
    2. RISC (Reduced Instruction-Set Computer)
    3. VLIW (Very Long Instruction Word) machines
    4. SIMD (Single Instruction, Multiple Data)

  • 2 First, each three-address code assignment instruction has at most _________ on the right side
    1. one operator
    2. two operators
    3. three operators
    4. None of these

  • 3 An intermediate form called three-address code, which consists of a sequence of assembly-like instructions with _______________ operands per instruction
    1. one
    2. two
    3. three
    4. four

  • 4 Syntax trees are a form of intermediate representation; they are commonly used during _____________
    1. syntax analysis
    2. semantic analysis
    3. Code generation
    4. Both A & B

  • 5 An important part of semantic analysis is ____________, where the compiler checks that each operator has matching operands
    1. code understanding
    2. generating parse tree
    3. type checking
    4. error correction

  • 6 __________________that produce collections of routines for walking a parse tree and generating intermediate code
    1. Syntax-directed translation engines
    2. Code generator
    3. Parser
    4. Code analysis engines

  • 7 _________________ that automatically produce syntax analyzers from a grammatical description of a programming language.
    1. Code generators
    2. Parser generators
    3. Lexeme generators
    4. Analysis Engine

  • 8 The symbol table is a data structure containing a record of _______________.
    1. Variable name
    2. Attributes of the name
    3. Both A & B
    4. none of these

  • 9 In Java language, bytecode is an intermediate form resulted after
    1. interpretation
    2. compilation
    3. decoding
    4. byte production

  • 10 ______________ gives better error diagnostics than compiler.
    1. Preprocessor
    2. Assembler
    3. Linker/Loader
    4. Interpreter

  • 11 ___________ is much faster at mapping inputs to outputs.
    1. Compiler
    2. Assembler
    3. Linker
    4. Loader

  • 12 __________ directly execute the operations specified in the source program on inputs supplied by the user
    1. Editor
    2. Compiler
    3. Interpreter
    4. Linker

  • 13 Target program after compilation may be__________________
    1. executable machine-language program
    2. library program
    3. None of these

  • 14 __________ report any errors in the source program if detected during translation process.
    1. IDE
    2. Editor
    3. Interpreter
    4. Compiler

  • 15 Before a program can be run, it first must be ___________ into a form in which it can be executed by a computer
    1. copied
    2. translated
    3. decoded
    4. encoded

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert