Time Left - 15:00 mins

GATE CS 2022 : Compiler design Quiz -2

Attempt now to get your rank among 282 students!

Question 1

Which phase uses finite state automata?

Question 2

Which of the following is not the token in C code?

Question 3

Which of the following is the correct syntax for the identifier in C?

Question 4

Consider the following diagram

The lex, yy, c consists of a ________

Question 5

How many of following statements are true?

1) Dynamic memory allocation is performed during runtime.

2) Type checking is performed at compile time

3) Inline expansion is performed during compile time

4) Symbol table management is performed during compile time

Question 6

Consider the following errors in a code :

* Identifier typed wrong

* Unbalanced parenthesis

* Semi - colon missing

* Multiple declarations of same variable

* Undeclared Variable

* Values not compatible with format

Let the errors that are reported by Lexical Analyzer be denoted by 'a'

and the errors that are reported by Syntax Analyzer be denoted by 'b'

and the errors that are reported by Symantic Analyzer be denoted by 'c'

Then find the value of (a+b-c) ____________

  • 282 attempts
  • 1 upvote
  • 0 comments
Oct 18GATE & PSU CS