C#.NET — which statement is correct about using statements?

C# Programming Namespaces Difficulty: Easy
Choose an option
  • A
    using statement can be placed anywhere in the C#.NET source file.
  • B
    It is permitted to define a member at namespace level as a using alias.
  • C
    A C#.NET source file can contain any number of using statements.
  • D
    using can create alias for namespace but not for its elements.
  • E
    using can create alias for elements but not for namespace.

Answer

Correct Answer: A C#.NET source file can contain any number of using statements.

Explanation

Fact:A source file can contain multiple using directives. They must appear at the top of the file (before namespace or class declarations). Aliases can be created for namespaces or types.

Final Answer:A C#.NET source file can contain any number of using statements.

Discussion & Comments
No comments yet. Be the first to comment!
Join Discussion