Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Test  >  GATE Computer Science Engineering(CSE) 2027 Mock Test Series  >  Test: Compiler Design - 2 - Computer Science Engineering (CSE) MCQ

GATE Computer Science Engineering(CSE) 2027 Test: Compiler Design - 2 Free


MCQ Practice Test & Solutions: Test: Compiler Design - 2 (10 Questions)

You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Compiler Design - 2". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 30 minutes
  • - Number of Questions: 10

Sign up on EduRev for free to attempt this test and track your preparation progress.

Test: Compiler Design - 2 - Question 1

Which of the following can detect an error if a programmer by mistake writes multiplication instead of division?

Detailed Solution: Question 1

No Logical errors can’t be detected.

Test: Compiler Design - 2 - Question 2

Which of the following technique is used for building cross compilers for other machines?

Detailed Solution: Question 2

The Canadian Cross is a technique for building cross compilers for other machines. Given three machines X, Y, and Z, one uses machine X (e.g. running Windows XP on an IA-32 processor) to build a cross compiler that runs on machine Y (e.g. running Mac OS X on an x86-64 processor) to create executables for machine Z.

Test: Compiler Design - 2 - Question 3

Why Generation of intermediate code based on an abstract machine model is useful in compilers?

Detailed Solution: Question 3

Intermediate code generator receives input from its predecessor phase, semantic analyzer, in the form of an annotated syntax tree.

Test: Compiler Design - 2 - Question 4

Characters are grouped into tokens in which of the following phase of the compiler design?

Detailed Solution: Question 4

Gives tokens as output

Test: Compiler Design - 2 - Question 5

Which of the following is a stage of compiler design?

Detailed Solution: Question 5

The phases of a compiler are:
1. Lexical analysis
2. Syntax analysis
3. Semantic analysis
4. Intermediate code generator
5. Code optimizer
6. Code generator

Test: Compiler Design - 2 - Question 6

Which of the following error can a compiler check?

Detailed Solution: Question 6

Logic flaws can never be checked by a compiler.

Test: Compiler Design - 2 - Question 7

Who is responsible for the creation of the symbol table?

Detailed Solution: Question 7

The compiler generates a symbol table, which contains a list of lexemes or tokens.

Test: Compiler Design - 2 - Question 8

Which of the following is a system program that integrates a program’s individually compiled modules into a form that can be executed?

Detailed Solution: Question 8

A loader that combines the functionality of a relocation loader with the ability to combine a number of independently compiled program segments.

Test: Compiler Design - 2 - Question 9

Which of the following phase of the compiler is Syntax Analysis?

Detailed Solution: Question 9

It is the Second Phase of the Compiler after Lexical Analyzer. It is also called Hierarchical Analysis or Parsing.

Test: Compiler Design - 2 - Question 10

Which of the following error can Compiler diagnose?

Detailed Solution: Question 10

Only syntactical errors can be detected by the compiler.

56 docs|215 tests
Information about Test: Compiler Design - 2 Page
In this test you can find the Exam questions for Test: Compiler Design - 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Compiler Design - 2, EduRev gives you an ample number of Online tests for practice
Download as PDF