Time Left - 15:00 mins

GATE 2024 Compiler Design Foundation Quiz 93

Attempt now to get your rank among 66 students!

Question 1

Which of the following string is said to be a token without looking next input character in C language?

Question 2

Find the number of tokens in the following 'C’ program construct:

void main ()

{
 
  printf ("HiGATE");

  int a=10;

/* Line 10*/

} return 1;

Question 3

Which of the following C program statement is having lexical errors?

Question 4Multiple Correct Options

Which of the following options best described as a token in a programming language?

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

}

  • 66 attempts
  • 0 upvotes
  • 0 comments
Jun 13GATE & PSU CS