Namespaces

Q1:
Which of the following statements are correct about a namespace used in C#.NET?
  1. Classes must belong to a namespace, whereas structures need not.
  2. Every class, struct, enum, delegate and interlace has to belong to some or the other namespace.
  3. All elements of the namespace have to belong to one file.
  4. If not mentioned, a namespace takes the name of the current project.
  5. The namespace should be imported to be able to use the elements in it.

A 1, 3

B 2, 4, 5

C 3, 5

D 4 only

ANS:B - 2, 4, 5

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.