.NET Multiple Choice Questions and Answers

Question

Which of the following statements is correct about namespaces in C#.NET?

A A namespace cannot be nested.
B Namespaces can be nested only up to level 5.
C There is no limit on the number of levels while nesting namespaces.
D If namespaces are nested, then it is necessary to use using statement while using the elements of the inner namespace.

Answer & Explanation

Answer: Option [D]