Encapsulation
Abstaction
Overloading
Overriding
Methods
Indexers
Properties
Fields
Basic
SOAP
Binary
XML
XmlReaderValidationType
ReaderValidationType
XmlValidatingReaderType
Validation Type
Exposes a file in XML Mode
Exposes a file in Text Mode
Exposes a Stream around a file, supporting synchronous and a aynchronous write
Exposes a Stream around a file, supporting synchronous and a synchronous read operations
Code denotes Reference Type Generics Constraint
Code denotes usage of Generics Constraint
Code denotes Base Class Generics Constraint
Code denotes Interface Generics Constraint
WSDL
UDDI
XML
SOAP
The throw statement terminates the execution of the program and passes the control to the finally block in the calling program
The throw statement raises a new exception, and the CLR unwinds the stack looking for the entry point of the program int the call chain and restarts the program
The throw statement attempts to pass the control to the nearest catch statement, and the CLR unwinds the stack looking for an exception handler, try/catch, in the call chain with a catch block
The throw statement raises a new exception, and the CLR unwinds the stack looking for an exception handler, try/catch, in the call chain with a catch block
SOAP Header element contains message hierarchy
The SOAP Header element contains application-specific information, like authentication, payment, etc about the SOAP message
SOAP Header element contains definition of a message
SOAP Header element contains verbose description of a message
ExternalException
SystemException
InvalidOperationException
InvalidCastException
Return only the columns and rows that you need
Return complete data
Provide data paging for large results
Cache data where possible
A.2,1,4,3
B.1,2,3,4
C.3,2,4,1
D.4,3,1,2
Wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx?XML
Wsdl/WSDL <>http://hostServer/WebserviceRoot/WebServiceName.asmx<>
Wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL
Wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx
InvalidCastException
SystemException
StackOverflowException
ApplicationException
Finally block is executed even if an error occurs
Finally block is definately executed when leaving a try block
Finally block is used to perform any necessary clean-up jobs
Finally block is not executed if an error occurs
Reads all contents from a text file
Reads all contents from a text file to the memory
Reads all contents from a text file to a variable
Reads first line from a text file
Following code blocks all the threads from accessing Customer list
Following code ensures only a single thread is blocked from accessing Customer List
Lock on m_CustomersLock has to be released in a finally block
Extension methods are called by instance methods syntax
Extension methods are defined as protected methods
Extension methods are defined as static methods
Extension methods are called by static methods
The capability to dynamically invoke methods in a class based on their type
Method of determining what is required by the object is contained within the object
An object-oriented principle relating to how one class, a derived class, can share the characteristics and behaviour from another class a base class
An object-oriented principle associated with hiding the internals of an object from the outside world
It shows how a method in base class in hidden from the user
It is an example of inheritance
It shows how a method in base class can be used in the derived class
It shows how polymorphism is implemented
Struct members can be inherited
Following code is an example of a class
Struct members cannot be declared as protected
Following code is an example of a struct
Reader
XmlLang
ReadState
XmlReader
Class declaration
Inheritance
Run-time Polymorphism
Exceptions
Compile-time Polymorphism
1, 2 and 3 only
1, 3 and 5 only
2 and 4 only
4 only
All of the above
Delegate void del(int i); Sample s = new Sample(); del d = new del(ref s.MyFun); d(10, 1.1f);
Delegate void del(int i, Single j); del d; Sample s = new Sample(); d = new del(ref s.MyFun); d(10, 1.1f);
Sample s = new Sample(); delegate void d = new del(ref MyFun); d(10, 1.1f);
Delegate void del(int i, Single]); Sample s = new Sample(); del = new delegate(ref MyFun); del(10, 1.1f);
1 and 2 only
1 and 3 and 4 only
2 and 5 only
All of the above
None of the above
1 and 2 only
5 only
3 and 4 only
1, 2 and 5 only
All of the above
True
False
IEnumerator e; e = q.GetEnumerator(); while (e.MoveNext()) Console.WriteLine(e.Current);
IEnumerable e; e = q.GetEnumerator(); while (e.MoveNext()) Console.WriteLine(e.Current);
IEnumerator e; e = q.GetEnumerable(); while (e.MoveNext()) Console.WriteLine(e.Current);
IEnumerator e; e = Queue.GetEnumerator(); while (e.MoveNext()) Console.WriteLine(e.Current);
10 5
10 5.4
10 5.400000
0 0
None of the above
1, 3, 5
1, 4
2, 4, 5
1, 2, 3
None of these
1, 4
2, 3, 5
3, 4
2, 5
None of these
1, 2, 3
2, 4
3, 5
None of the above.
When a class inherits an interface it inherits member definitions as well as its implementations.
An interface cannot contain the signature of an indexer.
To implement an interface member, the corresponding member in the class must be public as well as static.
Interfaces members are automatically public.
Console.WriteLine(base.i + " " + i);
Console.WriteLine(i + " " + base.i);
Console.WriteLine(mybase.i + " " + i);
Console.WriteLine(i + " " + mybase.i);
Console.WriteLine(i + " " + this.i);
While creating the object firstly the constructor of class B will be called followed by constructor of class A.
The constructor of only class B will be called.
The constructor of only class A will be called.
The order of calling constructors depends upon whether constructors in class A and class B are private or public.
While creating the object firstly the constructor of class A will be called followed by constructor of class B.
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.