IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry Biotechnology Biochemical Engineering
Civil Engineering Mechanical Engineering Chemical Engineering Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

C# Programming - Attributes

@ : Home > C# Programming > Attributes > General Questions

Exercise

  • General Questions
"Time and tide wait for none."
- Alexander Pope
1. 

The [Serializable()] attribute gets inspected at

A. Compile-time
B. Run-time
C. Design-time
D. Linking-time
E. None of the above

2. 

Which of the following are correct ways to specify the targets for a custom attribute?

A. By applying AttributeUsage to the custom attribute's class definition.
B. By applying UsageAttribute to the custom attribute's class definition.
C. Once an attribute is declared it applies to all the targets.
D. By applying AttributeUsageAttribute to the custom attribute's class definition.
E. None of the above.

3. 

Which of the following are correct ways to pass a parameter to an attribute?

  1. By value
  2. By reference
  3. By address
  4. By position
  5. By name

A. 1, 2
B. 1, 2, 3
C. 4, 5
D. All of the above

4. 

Which of the following statements are correct about inspecting an attribute in C#.NET?

  1. An attribute can be inspected at link-time.
  2. An attribute can be inspected at compile-time.
  3. An attribute can be inspected at run-time.
  4. An attribute can be inspected at design-time.

A. 1, 2
B. 3, 4
C. 1, 3, 4
D. All of the above
E. None of the above

5. 

Which of the following is correct ways of applying an attribute?

A.
[WebService (Name = "IndiaBIX", Description = "BIX WebService")] 
class AuthenticationService: WebService
{ /* .... */}
B.
<WebService ( Name : "IndiaBIX", Description : "BIX WebService" )> 
class AuthenticationService: inherits WebService
{ /* .... */}
C.
<WebService ( Name = "IndiaBIX", Description = "BIX WebService" )> 
class AuthenticationService: extends WebService
{ /* .... */}
D.
[WebService ( Name := "IndiaBIX", Description := "BIX WebService")] 
class AuthenticationService: inherits WebService
{ /* .... */}



© 2008-2013 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Contact us: info@indiabix.com     Follow us on twitter!