Namespaces Questions and Answers
Practice ModeShowing 10 of 30 questions
Q1
If a namespace is present in a library then which of the following is the correct way to use the elements of the namespace?
Answer: Option B
Q2
Which of the following is NOT a namespace in the .NET Framework Class Library?
Answer: Option A
Q3
Which of the following statements is correct about a namespace in C#.NET?
Answer: Option A
Q4
Which of the following is absolutely neccessary to use a class Point present in namespace Graph stored in library?
Answer: Option C
Q5
Which of the followings are NOT a .NET namespace?
System.Web
System.Process
System.Data
System.Drawing2D
System.Drawing3D
Answer: Option B
Q6
Which of the following statements is correct about namespaces in C#.NET?
Answer: Option C
Q7
Which of the following statements is correct about the using statement used in C#.NET?
Answer: Option C
Q8
Which of the following statements are correct about a namespace used in C#.NET?
Classes must belong to a namespace, whereas structures need not.
Every class, struct, enum, delegate and interlace has to belong to some or the other namespace.
All elements of the namespace have to belong to one file.
If not mentioned, a namespace takes the name of the current project.
The namespace should be imported to be able to use the elements in it.
Answer: Option B
Q9
Which of the following CANNOT belong to a C#.NET Namespace?
Answer: Option D
Q10
Which of the following statements is correct about a namespace used in C#.NET?
Answer: Option C