MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A minimum state deterministic finite automation accepting the language L={W W ε {0,1}*, number of 0s and 1s in are divisible by 3 and 5, respectively} has |
| A. | 15 states |
| B. | 11 states |
| C. | 10 states |
| D. | 9 states |
| Answer» B. 11 states | |
| 2. |
The following grammar |
| A. | is type 3 |
| B. | is type 2 but not type 3 |
| C. | is type 1 but not type 2 |
| D. | is type 0 but not type 1 |
| Answer» C. is type 1 but not type 2 | |
| 3. |
The following CFG is in |
| A. | Chomsky normal form but not strong Chomsky normal form |
| B. | Weak Chomsky normal form but not Chomsky normal form |
| C. | Strong Chomsky normal form |
| D. | Greibach normal form |
| Answer» E. | |
| 4. |
If a language is denoted by a regular expression L = ( x )* (x y x ), then which of the following is not a legal string within L ? |
| A. | yx |
| B. | xyx |
| C. | x |
| D. | xyxyx |
| Answer» E. | |
| 5. |
Following syntax-directed translation scheme is used with a shift reduction (bottom up) parser that perform the action in braces immediately after a reduction by the corresponding production |
| A. | 0202021 |
| B. | 1202020 |
| C. | 1020202 |
| D. | None of these |
| Answer» B. 1202020 | |
| 6. |
Which of the following is true with respect to Kleene’s theorem? |
| A. | 1 only |
| B. | 2 only |
| C. | Both 1 and 2 are true statements |
| D. | None is true |
| Answer» D. None is true | |
| 7. |
Which of the following are decidable? |
| A. | 1 and 2 |
| B. | 1 and 4 |
| C. | 2 and 3 |
| D. | 2 and 4 |
| Answer» C. 2 and 3 | |
| 8. |
Consider the following statements about the context free grammar G = {S - >SS,S - >ab,S ->ba, S - ε} |
| A. | 1 only |
| B. | 1 and 3 |
| C. | 2 and 3 |
| D. | 1,2 and 3 |
| Answer» E. | |
| 9. |
Given a Non-deterministic Finite Automation (NFA) with states p and r as initial and final states respectively and transition table as given below: |
| A. | 5 |
| B. | 4 |
| C. | 3 |
| D. | 2 |
| Answer» D. 2 | |