Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

What is a compiler?

  • Program
  • Language
  • Hardware
  • Memory
Solutions
Question - 2

Compiler translates the source code to

  • Machine code
  • Binary code
  • Executable code
  • Both A & B
Solutions
Question - 3

What is the output of lexical analyzer?

  • A parse tree
  • A list of tokens
  • Intermediate code
  • Processed code
Solutions
Question - 4

A optimizing compiler

  • Is optimized to take less time for execution
  • Optimized the code
  • Is optimized to occupy less memory
  • None of the above
Solutions
Question - 5

Shift reduce parsers are

  • Bottom up parser
  • Top down parser
  • Both A & B
  • None of the above
Solutions
Question - 6

What is the action of parsing the source program into proper syntatic classes?

  • Syntax analysis
  • Lexical analysis
  • Interpretation analysis
  • General syntax analysis
Solutions
Question - 7

Which of the following is used for grouping of characters into tokens?

  • Parser
  • Code generator
  • Lexical analyzer
  • Code generator
Solutions
Question - 8

How many parts of compiler are there?

  • 2
  • 4
  • 6
  • 8
Solutions
Question - 9

____ is a process of finding a parse tree for a string of tokens.

  • Analysing
  • Recognizing
  • Parsing
  • Tokenizing
Solutions
Question - 10

Compiler should report the presence of __________ in the source program, in translation process.

  • Classes
  • Objects
  • Errors
  • Text
Solutions
Question - 11

A _________ is a software utility that translates code written in higher language into a low level language.

  • Text editor
  • Compiler
  • Interpreter
  • Converter
Solutions
Question - 12

A grammar that produces more than one parse tree for some sentence is called as

  • Ambiguous
  • Regular
  • Unambiguous
  • All of these
Solutions
Question - 13

Representing the syntax by a grammar is advantageous. What is the cause?

  • It is concise
  • It is accurate
  • Automation becomes easy
  • All of the above
Solutions
Question - 14

Grammar of the programming is checked at _______ phase of compiler.

  • Semantic analysis
  • Syntax analysis
  • Code optimization
  • Code generation
Solutions
Question - 15

A compiler translate high level programs into low level programs, which is called as

  • Beta code
  • Compiled code
  • Source code
  • Object code
Solutions
Question - 16

Compiler can check ________ error.

  • Logical
  • Content
  • Syntax
  • None of the above
Solutions
Question - 17

which is the permanent data base in the geneal model of Compiler ?

  • source code
  • literal table
  • identifier table
  • terminal table
Solutions
Question - 18

What is an interpreter?

  • An interpreter is a decoder which provides very efficient execution
  • An interpreter is a general purpose language providing very efficient execution
  • An interpreter does the conversion line by line as the program is run
  • An interpreter is the representation of the system being designed
Solutions
Question - 19

which of the following parsers is the most powerful ?

  • Canonical LR
  • SLR
  • LALR
  • Operator - precedence
Solutions
Question - 20

The translator program used in assembly language is called

  • Assembler
  • Interpreter
  • Compiler
  • Translator
Solutions
Tags:
Compiler Design MCQs,Quiz on Compiler Design ,Compiler Designtest,Compiler Design MCQs and Answers,Multiple choice questions on Compiler Design PDF,Compiler Design test,Compiler Design quiz