C#.NET Namespaces — which statement is correct about nesting namespaces?
C# Programming
Namespaces
Difficulty: Easy
Choose an option
-
ANamespaces can be nested only up to level 5.
-
BA namespace cannot be nested.
-
CThere is no limit on the number of levels while nesting namespaces.
-
DIf namespaces are nested, using statement is required for inner elements.
-
ENesting 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.