C# QUIZ 2

4
Created on By Sirjana GhimireAcharya

C# Quiz 2

1 / 10

1.Select the control which can’t be placed in the toolbox

2 / 10

2. How many Bytes are stored by Long Datatype in C# .net ?

3 / 10

3. Correct Declaration of Values to variables a and b ?

4 / 10

4. Struct is a _____.

5 / 10

5. C# is an alias of C++

6 / 10

6. How do you insert COMMENTS in C# code?

7 / 10

7. Which of the following converts a type to a small floating point number in C#?

8 / 10

8. Which of the following converts a type to an unsigned int type in C#?

9 / 10

9. What will be the output of the following code snippet?

class emp
{
public string name;
public string address;
public void display()
{
Console.WriteLine("{0} is in city {1}", name, address);
}
}
class Program
{
static void Main(string[] args)
{
emp obj = new emp();
obj.name = "Shyam";
obj.address = "Kathmandu";
obj.display();
Console.ReadLine();
}
}

10 / 10

10. What is Nullable type?

Your score is

The average score is 53%

0%