Time Left - 15:00 mins
GATE 2024 compiler design Rank Booster Quiz 16
Attempt now to get your rank among 42 students!
Question 1
Which of the following is not a token of the C program?
Question 2
The task of the lexical analysis phase is ________.
Question 3
Which of the following statements is False?
- Lexical Analysis is specified by regular expressions.
- Syntax analysis implemented by transition diagram.
- In lexical analysis, two pointers to the input buffer are maintained
Question 4
Linear analysis is also ________ or scanning.
Question 5
Find the number of tokens in the following C code using lexical analyzer of compiler.
main ()
{
/* int a = 10; */
int *u, *v, s;
u = &s;
v = &s;
printf(“%d%d”, s, * u);
//code ended
}
Question 6
When the lexical analysis parses the following Code the number of tokens generated are?
int main()
{
int sum=a+b;
return sum;
}
Question 7
Consider the following statements:
S1: A compiler performs code optimisation, a pre-processor does not.
S2: A compiler performs full syntactic and semantic analysis, a pre-processor does not.
which of the following statements is correct?
- 42 attempts
- 0 upvotes
- 0 comments
Nov 27GATE & PSU CS