Machine-translated by Google. Questions are authored in English.
Top

Discussion

Kleene closure applied to a regular expression r denotes

  • A.zero or more concatenated occurrences of strings matching r
  • B.exactly one occurrence of a string matching the expression r
  • C.one or more concatenated occurrences of strings matching r
  • D.the complement of the language described by the expression r

Answer: A

The star operator includes the empty string, since zero occurrences are permitted. The plus operator denotes one or more, so r plus is equivalent to r concatenated with r star. Both forms appear in specifications and the generator treats them interchangeably.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.