Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ### MCQ1: Theory of Computation
  2.  
  3. Q. In which of the following Regular Expression(s), any number of a's is followed by any number of b's followed by any number of c's is (Indicate all such answers)
  4.  
  5. ```
  6. ───────────
  7. Options:
  8. ───────────
  9. A. (a+b+c)*
  10. B. a*b*c*
  11. C. a* + b* + c*
  12. D. abc(a*b*c*)
  13. E. (a*b*c*)abc
  14. ───────────
  15. ```
  16.  
  17.  
  18. ```
  19. • Points to Remember:
  20. ```
  21. 1. '*' operator in regular expressions is for 'Iteration' (Matching zero or more specific characters)
  22.  
  23. 2. Regular expressions are used to represent regular language
  24.  
  25. 3. Regular expressions are recursively enumerable or Turing-recognizable languages (Type 0 language)
  26.  
  27. 4. Union, Concatenation and Kleene closure operations can be applied on regular expressions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement