Explore topic-wise MCQs in Compilers.

This section includes 8 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 regular expressions denote zero or more instances of an x or y is?

A. (x+y)
B. (x+y)*
C. (x* + y)
D. (xy)*
Answer» C. (x* + y)
2.

Regular expression x/y denotes which of the following set?

A. {x,y}
B. {xy}
C. {x}
D. {y}
Answer» B. {xy}
3.

Regular expression (x/y)(x/y) denotes which of the following set?

A. {xy,xy}
B. {xx,xy,yx,yy}
C. {x,y}
D. {x,y,xy}
Answer» C. {x,y}
4.

The production Grammar is {S->aSbb,S->abb} is __________ grammar.

A. Type-3
B. Type-2
C. Type-1
D. Type-0
Answer» C. Type-1
5.

Regular Expressions can be used with XML checkpoints.

A. True
B. False
Answer» B. False
6.

All __________ are automatically treated as regular expressions.

A. Programmatic description
B. Window
C. Win Object
D. Collection
Answer» B. Window
7.

What is the Regular Expression Matching Zero or More Specific Characters?

A. x
B. #
C. *
D. &
Answer» D. &
8.

Regular expressions can be used only for values of type string and number.

A. True
B. False
Answer» C.