Time Left - 15:00 mins
GATE CS 2022 : Compiler design Quiz -1
Attempt now to get your rank among 349 students!
Question 1
Which of the following data structure is used in the complier?
Question 2
Which of the following is not done by lexical analyzer.
Question 3
In C programming, which of the following is not used as a token separator during lexical analysis?
Question 4
Consider the following program
1: main()
2: { int x=10;
3: if(x<20;
4: else
5: y=20;
6: }
When lexical analyser scanning the above program, find the line number where the l lexical error can be produced?
1: main()
2: { int x=10;
3: if(x<20;
4: else
5: y=20;
6: }
When lexical analyser scanning the above program, find the line number where the l lexical error can be produced?
Question 5
Lexical Analyzer convert a sequence of characters (such as in a computer program or web page) into a sequence of tokens. Consider the following program.
The number of tokens in the above program is _____________?
Question 6
How many tokens present in given code
#include<stdio.h>
- 349 attempts
- 1 upvote
- 0 comments
Oct 18GATE & PSU CS