| 1)
|
Check the list of class members(in row) and select appropriate type(in column). |
|
|
| 2)
|
Check the code provided below, will it compile successfully. |
|
struct CSharpSample
{
private Int32 WindowsVersionNumber = 2000;
} |
| 3)
|
C# supports "readonly" fields. Go through the code samples provided below and select all which will compile successfully. |
|
|
| 4)
|
What is the difference between const and readonly fields? |
|
|
| 5)
|
Class and Structure both are similar is many ways, both can have data members and function members.
Go through all the option and select the correct ones. |
|
|
| 6)
|
Check the code below and say whether it will compile or not. |
|
struct King
{
public King()
{
}
} |
| 7)
|
If you want to create a class which exists in two different files in your project, which keyword should be used? |
|
|
| 8)
|
Check the following code and say whether the class declaration syntax is correct or not? |
|
private class Monkey
{
} |
| 9)
|
Is it possible to have private constructors in C#? |
|
class Monkey { private Monkey() { } } |
| 10)
|
Select the keyword which is NOT an accessibility modifier in C#? |
|
|
| 11)
|
What will be the output if you call ToString() method of an object and you have not overridden the method in your class? |
|
|
| 12)
|
Select all options which are true for a structure. |
|
|
| 13)
|
Partial Functions in C# 3.5 cannot have multiple implementations. True or False. |
|
|
| 14)
|
readonly field cannot be set up anywhere beside the constructor of a class. True or False |
|
|
| 15)
|
Which C# keyword permits a method in an inherited class to "hide" a non-virtual method with a same name in the base class?
It replaces the original method rather than overriding it. |
|
|
| 16)
|
Which C# keyword specifies that method can be overriden in subclass? |
|
|
| 17)
|
"DoWork" function is defined correctly or not? |
|
Class Worker { public virtual static DoWork() { } } |