Open In App
Related Articles

UGC-NET | UGC NET CS 2014 Dec – III | Question 20

Improve Article
Improve
Save Article
Save
Like Article
Like

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 28 Jun, 2018
Like Article
Save Article
Previous
Next
Similar Reads