Q.1:
C# provides an XML documentation comment syntax by prefacing your comment lines with...W
A.///
B.
<!--
C.
No Option
D.
No Option
Q.2:
What is the default visibility for members of classes and structs in C#?H
A.private
B.
internal
C.
protected
D.
public
Q.3:
In order for the following to compile: using (CustomClass = new CustomClass()) { } CustomClass needs to implement which interface?
A.
ICustomAdapter
B.
IUsing
C.IDisposable
D.IDisposable
Q.4:
How do you implement your own version of ToString() method in your class?I
A.
public string ToString() { }
B.public override string ToString() { }%
C.public override string ToString() { }%
D.
private override string ToString() { }&
Q.5:
Can you have a nullable DateTime in C#?'
A.
No
B.Yes
C.
No Option
D.
No Option
Q.6:
Lambda expressions can be used a short form way to:3
A.
Create generic types
B.Assign a value to a delegate
C.
No Option
D.
No Option
Q.7:
Which is an example of a C# main method?(
A.
all of these
B.
none of these
C.static void Main()
D.
static int main()
Q.8:
Which of the following is not a C# keyword?+
A.
is
B.
as
C.of
D.
if
Q.9:
The [Flags] attribute indicates that an enum is to be used as a bit field. However, the compiler will allow you to use an enum as a bit field, even without the [Flags] attribute.
A.true
B.
false
C.
No Option
D.
No Option
Q.10:
How does a struct differ from a class in C# ?-
A.
A class can be stored as either a reference or a value.7
B.
A struct can contain implementation inheritance.0