My Report

C# Namespace Test


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. If ListBox is the class of System.Windows.Forms namespace. Then, the correct way to create an object of ListBox class is?

2. Which among the given is not a correct way to call the method Issue() defined in the following C# code snippet?

class Book
{
    public void issue()
    {
      /* code */
    }
}
class Journel
{
     public void issue()
     {
         /* code */
     }
}

3. Which among the following is a .NET namespace?

4. Which among the following is the correct statement about the using statement used in C#.NET?

5. If a class named csharp is present in namespace n1 as well as in namespace n2, then which of the following is the correct way to use csharp class?

6. Which is the correct statement about the namespaces in C#.NET?

7. Which among the following is a correct statement about namespace used in C#.NET?

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

9. Which among the following does not belong to the C#.NET namespace?

10. Which among the following statements are not correct about a namespace used in C#.NET?


 

Start practicing “1000 MCQs on C#”, and once you are ready, you can take tests on all topics by attempting our “C# Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.