 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
| 1. | Default’ case is mandatory in a switch statement. | 
| A. | True | 
| B. | False | 
| Answer» C. | |
| 2. | A ‘while’ loop may always be converted to an equivalent ‘for’ loop. | 
| A. | True | 
| B. | False | 
| Answer» B. False | |
| 3. | An if statement may contain compound statements only in the else clause. | 
| A. | True | 
| B. | False | 
| Answer» C. | |
| 4. | Number of times the loop will run. | 
| A. | Infinite | 
| B. | 9 | 
| C. | 0 | 
| D. | 4View Answer | 
| Answer» B. 9 | |
| 5. | The statement for(;;) is perfectly valid C statement. | 
| A. | True | 
| B. | False | 
| Answer» C. | |
| 6. | Consider the following C program. What is the Value of a? | 
| A. | 7 | 
| B. | 5 | 
| C. | 9 | 
| D. | None of the mentionedView Answer | 
| Answer» B. 5 | |
| 7. | The advantage of ‘switch’ statement over ‘if’ is that it leads to more structured program. | 
| A. | True | 
| B. | False | 
| Answer» B. False | |
| 8. | Consider the following program. What will be printed when input is 2? | 
| A. | Two Three default | 
| B. | Two | 
| C. | Two default | 
| D. | Two Two defaultView Answer | 
| Answer» B. Two | |
| 9. | How many times will the following loop be executed? | 
| A. | 0 | 
| B. | 25 | 
| C. | 26 | 
| D. | 1View Answer | 
| Answer» C. 26 | |