C#.NET Namespaces — which statement is correct about nesting namespaces?

C# Programming Namespaces Difficulty: Easy
Choose an option
  • A
    Namespaces can be nested only up to level 5.
  • B
    A namespace cannot be nested.
  • C
    There is no limit on the number of levels while nesting namespaces.
  • D
    If namespaces are nested, using statement is required for inner elements.
  • E
    Nesting of namespaces is permitted only if all inner namespaces are in the same file.

Answer

Correct Answer: There is no limit on the number of levels while nesting namespaces.

Explanation

Fact:Namespaces can be nested indefinitely in C#.NET. There is no limit. Using directives simply make access easier but are not a restriction.

Final Answer:There is no limit on the number of levels while nesting namespaces.

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