Time Left - 20:00 mins
GATE CS : Compiler Design Champion Quiz 1
Attempt now to get your rank among 947 students!
Question 1
Match the following groups:
List-I
A- Lexical analyzer
B- Syntax analyzer
C- Type checking
List-II
1- Checks the structure of the program.
2- Analysis of entire program by reading each character.
3- Checks the consistency requirements in a context of the program.
List-I
A- Lexical analyzer
B- Syntax analyzer
C- Type checking
List-II
1- Checks the structure of the program.
2- Analysis of entire program by reading each character.
3- Checks the consistency requirements in a context of the program.
Question 2
In C programming, which of the following is not used as a token separator during lexical analysis?
Question 3
Which data structure in a compiler is used for managing information about variables and their attributes?
Question 4
In a compiler, keywords of a language are recognized during?
Question 5
Consider the C program
Main()
{
int x = 10;
x = x + y + z;
}
How many tokens are identified by lexical analyzer?
Main()
{
int x = 10;
x = x + y + z;
}
How many tokens are identified by lexical analyzer?
Question 6
Which of the following is not a functionality of C compiler?
Question 7
Which of the following statements are TRUE?
I. There exist parsing algorithms for some programming languages whose complexities are less than O(n^3) .
II. A programming language which allows recursion can be implemented with static storage allocation.
III. No L-attributed definition can be evaluated in the framework of bottom-up parsing.
IV. Code improving transformations can be performed at both source language and intermediate code level.
I. There exist parsing algorithms for some programming languages whose complexities are less than O(n^3) .
II. A programming language which allows recursion can be implemented with static storage allocation.
III. No L-attributed definition can be evaluated in the framework of bottom-up parsing.
IV. Code improving transformations can be performed at both source language and intermediate code level.
Question 8
Dynamic linking can cause security concerns because
Question 9
Consider the grammar shown below.
S → C C
C → c C | d
This grammar is
S → C C
C → c C | d
This grammar is
Question 10
Which of the following data structure is used in the complier?
- 947 attempts
- 0 upvotes
- 47 comments
Jul 5GATE & PSU CS