In some programming languages, an identifier is permitted to be a letter…

GATE · 1995 · CS · Question 1 subparts

In some programming languages, an identifier is permitted to be a letter following by any number of letters or digits. If L and D denote the sets of letters and digits respectively, which of the following expressions defines an identifier?

  1. A.

    (L∪D)+

  2. B.

    L(L∪D)*

  3. C.

    (L.D)*

  4. D.

    L.(L.D)*

Attempted by 11 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…