Question
a.
Custom attribute can be applied to an assembly
b.
[assembly : Employer(“Ankit”,employeeid.one)].
c.
[ Employer(“Ankit”, employeeid.second)] class employee
{
}
d.
All of the mentioned
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. The correct way to apply the custom attribute called Employer which receives two arguements – name of the employee and employeeid is?
Similar Questions
Discover Related MCQs
Q. Which of the following is the correct statement about inspecting an attribute in C#.NET?
View solution
Q. Attributes could be applied to
View solution
Q. The [Serializable()] attributes gets inspected at:
View solution
Q. Which of the classes provide the operation of reading from and writing to the console in C#.NET?
View solution
Q. Which of the given stream methods provide access to the output console by default in C#.NET?
View solution
Q. Which of the given stream methods provide the access to the input console in C#.NET?
View solution
Q. The number of input methods defined by the stream method Console.In in C#.NET is?
View solution
Q. Select the correct methodS provided by Console.In?
View solution
Q. Choose the output returned when read() reads the character from the console?
View solution
Q. Choose the output returned when error condition is generated while read() reads from the console.
View solution
Q. Choose the object of TextReader class.
View solution
Q. Choose the object/objects defined by the Textwriter class.
View solution
Q. Choose the methods provided by Console.Out and Console.Error?
View solution
Q. Name the exception thrown by read() on failure.
View solution
Q. Which of these methods are used to read single character from the console?
View solution
Q. Which of these method used to read strings from the console?
View solution
Q. Which among the following methods are used to write characters to a string?
View solution
Q. Which method in Console enables to read individual inputs directly from the keyboard in a non line buffered manner?
View solution
Q. What is the output returned by Console if ReadLine() stores I/O error?
View solution
Q. Name the method/methods used to read byte streams from the file?
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!