Question
1. On compiling a C#.NET program the attibutes applied are recorded in the metadata of the assembly.
2. On compilation all the attribute's tags are deleted from the program.
3. It is not possible to create custom attributes..
4. The attributes applied can be read from an assembly using Reflection class.
5. An attribute can have parameters.
a.
1 and 2 only
b.
2 and 4 only
c.
1, 4 and 5 only
d.
All of the above
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following statements are correct about Attributes in C#.NET? 1. On compiling a C#.NET program the attibutes applied are recorded in the metadata of the...
Similar Questions
Discover Related MCQs
Q. Which of the following correctly describes the contents of the filename AssemblyInfo.cs?
View solution
Q. It possible to create a custom attribute that can be applied only to specific programming element(s) like ____ .
View solution
Q. Which of the following CANNOT be a target for a custom attribute?
View solution
Q. Once applied which of the following CANNOT inspect the applied attribute?
View solution
Q. Which of the following is the correct way to apply an attribute to an Assembly?
View solution
Q. Attributes can be applied to
1. Method
2. Class
3. Assembly
4. Namespace
5. Enum
View solution
Q. Select the class which is the base class for all arrays in C#?
View solution
Q. Select the interfaces implemented by array class:
View solution
Q. Choose the correct statement about the IComparer interface in C#:
View solution
Q. Choose the correct statement about the IComparer interface in C#:
View solution
Q. What does the following property defined in the array class defines in C#?
public bool IsReadOnly { get; }
View solution
Q. What does the following property define in C#?
public static int BinarySearch<T>(T[] array, int index, int length, T value)
View solution
Q. Which method will be used to copy content from one array to another array?
View solution
Q. Which mechanism among the following helps in identifying a type during the execution of a program?
View solution
Q. Select the statement which are correct about RTTI(Runtime type identification):
View solution
Q. Select the Keyword which supports the run time type identification:
View solution
Q. What does the following code signify?
expr is type
View solution
Q. Which operator among the following supports the operation of conversion at runtime without generating the exceptions?
View solution
Q. Which operator among the following is used to perform the operation of boxing, unboxing, reference and identity conversions?
View solution
Q. Which operator among the following supplies the information about characteristics of a typeof?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!