.Net Basic Interview Questions and Answers - 1
Question: 1
Define attributes?
Attributes are a mechanism for adding metadata such as compiler instructions and other data about the data, methods and classes.
Attributes are inserted in to the metadata and are visible through ILDASM.
Question: 2
Define reflection?
Reflection is the process by which a program can read its own metadata from another program.
Question: 3
Name some of attribute targets?
Class,
Constructor,
Delegate,
Enum,
Event,
Field,
Interface
Question: 4
What is the purpose of the attribute usage?
Attribute declaration is done by using attribute usage attribute.
The primary purpose of attribute usage is to indicate which types of program elements that can be applied to.
Question: 5
List out the uses of reflection?
Reflection is generally used for any of four tasks.
Viewing Meta Data – Used by tools and utilities that wish to display Meta data.
Type discovery – Used to examine the types in an assembly and interact with or instantiate those types. This can be useful in creating custom scripts.
Late binding to methods and properties – It allows the programmer to invoke properties and methods on objects dynamically instantiated based on type discovery. It is also known as dynamic invocation.
Creating types at Run Time – It is used to create new types at runtime and then to use those types to perform tasks.
Windows 7, 8, 10, 11, 12 MCQ Quiz Questions and Answers Pdf More
Computer Proficiency Test for SSC CGL, CHSL, MTS Exams More
General knowledge Quiz about Computer with Answers More
Computer Awareness Pdf Notes More
Fundamentals of Computer MCQ Objective Quiz Pdf More
Current Affairs MCQ on National and International Organisations More
1000+ Computer Science Engineering Question Papers with Answers Pdf More
5999+ Physics MCQS with Answers Pdf 2023 - 2024 More
TNPSC Books and Authors Name List in Tamil Pdf More
7000+ General Science Questions asked in SSC CGL Pdf More