MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Attributes knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Attributes can be applied to 1.Method 2.Class 3.Assembly 4.Namespace 5.Enum |
| A. | 1, 2 and 3 |
| B. | 1 and 2 only |
| C. | All of the above |
| D. | 4 and 5 only |
| Answer» E. | |
| 2. |
Which of the following statements are correct about inspecting an attribute in C#.NET? |
| A. | 1, 2 |
| B. | 3, 4 |
| C. | 1, 3, 4 |
| D. | All of the above |
| Answer» B. 3, 4 | |
| 3. |
Attributes can be applied to |
| A. | 1 and 2 only |
| B. | 1, 2 and 3 |
| C. | 4 and 5 only |
| D. | All of the above |
| Answer» C. 4 and 5 only | |
| 4. |
Which of the following is the correct way of applying the custom attribute called Tested which receives two-arguments - name of the tester and the testgrade? |
| A. | 1 only |
| B. | 1, 5 |
| C. | 2, 3 |
| D. | 4, 5 |
| Answer» D. 4, 5 | |
| 5. |
Which of the following statements are correct about Attributes in C#.NET? |
| A. | 1 and 2 only |
| B. | 2 and 4 only |
| C. | 1, 4 and 5 only |
| D. | All of the above |
| Answer» D. All of the above | |
| 6. |
Which of the following are correct ways to pass a parameter to an attribute? |
| A. | 1, 2 |
| B. | 1, 2, 3 |
| C. | 4, 5 |
| D. | All of the above |
| Answer» D. All of the above | |