Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Attributes Questions
C# attributes: to which program elements can attributes be applied from the following list — Method, Class, Assembly, Namespace, Enum?
After attributes are applied in a .NET application, which of the following cannot inspect or read those attributes?
Applying a custom attribute Tested(name, testgrade): which applications are correct for assembly-level and class-level usage?
Custom attributes in C#: which of the following cannot be a valid attribute target?
At what phase is the [Serializable] attribute considered by the .NET platform for (de)serialization behavior?
Choose the correct way to apply a WebService attribute to a class in C# (considering named parameters for Name and Description).
Custom attribute targets in C#: how do you specify what elements an attribute can be applied to?
Attributes in C#.NET: which statements are correct about compilation, reflection, and parameters?
What does the standard C# file AssemblyInfo.cs primarily contain in a typical project?
C#.NET — Inspecting attributes: at which stages can attributes be examined or queried? Choose all that truly apply: 1) Link-time 2) Compile-time 3) Run-time 4) Design-time (e.g., by tooling in IDEs)
C#.NET — Pick the correct syntax to apply an attribute to a class (example: Serializable).
C#.NET — Attributes: identify the correct statement about custom attributes and runtime behavior.
C#.NET — Applying an attribute to an assembly: choose the correct syntax.
C#.NET — How can parameters be passed to attributes? Identify the valid approaches.
C#.NET — AttributeUsage targeting: can a custom attribute be restricted to specific elements only?