C# Quiz 1

26
Created on By Sirjana GhimireAcharya

C# Quiz 1

1 / 10

1. Which of the following is correct about C# ?

2 / 10

2. What is a correct syntax to output "Hello World" in C#?

3 / 10

3. Which of the following converts a type to a Boolean value, where possible in C#?

4 / 10

4. class can inherit multiple ________

5 / 10

5. Which of the followings are value types in C#?

6 / 10

6. Which of the following can be used to define the member of a class externally?

7 / 10

7.What is stored in Heap ?

8 / 10

8. Which of the following operator can be used to access the member function of a class?

9 / 10

9. Does C# support multiple inheritances?

10 / 10

10. In the C# code below, what is this[int i]?

class MyClass
{
// ...

public string this[int i]
{
get{ return arr[i];}
set{ arr[i] = value; }
}
}

Your score is

The average score is 59%

0%