MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Attributes knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following statements are correct about an enum used in C#.NET? |
| A. | 1, 3, 4 |
| B. | 2, 5 |
| C. | 3, 4 |
| D. | 2, 4, 5 |
| Answer» B. 2, 5 | |
| 2. |
Which of the following statements are correct about enum used in C#.NET? |
| A. | 1, 2, 5 |
| B. | 1, 4 |
| C. | 3, 5 |
| D. | 2, 3, 4 |
| Answer» B. 1, 4 | |
| 3. |
Which of the following will be the correct output for the C#.NET code snippet given below? |
| A. | -3, -2, -1 |
| B. | -3, 0, 1 |
| C. | 0, 1, 2 |
| D. | red, green, blue |
| Answer» B. -3, 0, 1 | |
| 4. |
Which of the following is the correct output for the C#.NET code snippet given below? |
| A. | 1 |
| B. | -1 |
| C. | red |
| D. | 0 |
| Answer» D. 0 | |
| 5. |
Which of the following statements are correct about an enum used inC#.NET? |
| A. | 1, 2 |
| B. | 3, 4 |
| C. | 4, 5 |
| D. | 1, 4 |
| Answer» D. 1, 4 | |