IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

Namespaces - General Questions (2)

  • Home
  • Computer Science & Engineering
  • C# Programming Questions and Answers
  • Namespaces - General Questions
9. 

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

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

10. 

If a class called Point is present in namespace n1 as well as in namespace n2, then which of the following is the correct way to use the Point class?

 

A. namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { import n1; Point x = new Point(); x.fun(); import n2; Point y = new Point(); y.fun(); } } }
B. import n1; import n2; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { n1.Point x = new n1.Point(); x.fun(); n2.Point y = new n2.Point(); y.fun(); } } }
C. namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { using n1; Point x = new Point(); x.fun(); using n2; Point y = new Point(); y.fun(); } } }
D. using n1; using n2; namespace IndiabixConsoleApplication { class MyProgram { static void Main(string[] args) { n1.Point x = new n1.Point(); x.fun(); n2.Point y = new n2.Point(); y.fun(); } } }

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

11. 

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

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

12. 

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

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

13. 

Which of the following statments are the correct way to call the method Issue() defined in the code snippet given below?

namespace College
{
namespace Lib
{
class Book
{
public void Issue()
{
// Implementation code
}
}
class Journal
{
public void Issue()
{
// Implementation code
}
}
}
}

1 College.Lib.Book b = new College.Lib.Book();
b.Issue();

2 Book b = new Book();
b.Issue();

3 using College.Lib;
Book b = new Book();
b.Issue();

4 using College;
Lib.Book b = new Lib.Book();
b.Issue();

5 using College.Lib.Book;
Book b = new Book();
b.Issue();

A. 1, 3
B. 2, 4
C. 3
D. 4, 5

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

14. 

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

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

15. 

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

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

  • 1
  • 2

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report