General Questions

Question 1 :

If a namespace is present in a library then which of the following is the correct way to use the elements of the namespace?


A).
Add Reference of the namespace.
Use the elements of the namespace.
B).
Add Reference of the namespace.
Import the namespace.
Use the elements of the namespace.
C).
Import the namespace.
Use the elements of the namespace.
D).
Copy the library in the same directory as the project that is trying to use it.
Use the elements of the namespace.
E).
Install the namespace in Global Assembly Cache.
Use the elements of the namespace.
Answer : Option B

Question 2 :

Which of the following is NOT a namespace in the .NET Framework Class Library?


A). System.Process
B). System.Security
C). System.Threading
D). System.Drawing
E). System.Xml
Answer : Option A

Question 3 :

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


A). Namespaces help us to control the visibility of the elements present in it.
B). A namespace can contain a class but not another namespace.
C). If not mentioned, then the name 'root' gets assigned to the namespace.
D). It is necessary to use the using statement to be able to use an element of a namespace.
E). We need to organise the classes declared in Framework Class Library into different namespaces.
Answer : Option A

Question 4 :

Which of the following is absolutely neccessary to use a class Point present in namespace Graph stored in library?


A). Use fully qualified name of the Point class.
B). Use using statement before using the Point class.
C). Add Reference of the library before using the Point class.
D). Use using statement before using the Point class.
E). Copy the library into the current project directory before using the Point class.
Answer : Option C

Question 5 :

Which of the followings are NOT a .NET namespace?

1. System.Web
2. System.Process
3. System.Data
4. System.Drawing2D
5. System.Drawing3D


A). 1, 3
B). 2, 4, 5
C). 3, 5
D). 1, 2, 3
Answer : Option B