Open In App
Related Articles

ISRO | ISRO CS 2017 – May | Question 13

Improve Article
Improve
Save Article
Save
Like Article
Like

In some programming languages, an identifier is permitted to be a letter followed by any number of letters or digits. If L and D denotes the set of letters and digit respectively. Which of the following expression defines an identifier?
(A) (L + D) *
(B) (L.D) *
(C) L(L + D) *
(D) L(L.D) *


Answer: (C)

Explanation: Clearly, option (C) is correct as a valid identifier can only start with a letter followed by any number of letters or digits.
L(L + D) * can only generate the strings for a valid identifier.

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 : 20 Mar, 2018
Like Article
Save Article
Previous
Next
Similar Reads