Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2014 Dec – III | Question 20
  • Last Updated : 28 Jun, 2018
GeeksforGeeks - Summer Carnival Banner

How many tokens will be generated by the scanner for the following statement ?
x = x ∗ (a + b) – 5;
(A) 12
(B) 11
(C) 10
(D) 07


Answer: (A)

Explanation: x|1 =|2 x|3 ∗|4 (|5a|6 +|7 b|8)|9 –|10 5|11;|12
Total 12 tokens are there.
So, option (A) is correct.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :