

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
The RE gives none or many instances of an x or y is? |
A. | (x+y) |
B. | (x+y)* |
C. | (x* + y) |
D. | (xy)* |
Answer» C. (x* + y) | |
2. |
The regular expression denotes a language comprising all possible strings of even length over the alphabet (0, 1). |
A. | 1 + 0(1+0)* |
B. | (0+1) (1+0)* |
C. | (1+0) |
D. | (00+0111+10)* |
Answer» E. | |
3. |
If a ‘/’ is used before a character that has no special meaning, ‘/’ is ignored. |
A. | True |
B. | False |
Answer» B. False | |
4. |
All ___________ are automatically treated as regular expressions. |
A. | Programmatic description |
B. | Window |
C. | Win Object |
D. | Collection |
Answer» B. Window | |
5. |
You can use RE, if you expect the value of a property to change in an unpredictable way each time its run. |
A. | True |
B. | False |
Answer» C. | |
6. |
RE can be used only for values of type string and number. |
A. | True |
B. | False |
Answer» C. | |
7. |
A regular expression enables a quick test to determine objects and text strings with undependable values. |
A. | True |
B. | False |
Answer» B. False | |