C# Programming Online Test Questions and Answers - 1

Question: 1

What is an interface class?

It’s an abstract class with public abstract methods all of which must be implemented in the inherited classes.

Question: 2

What is the difference between an interface and abstract class?

In the interface all methods must be abstract, in the abstract class some methods can be concrete.

In the interface no accessibility modifiers are allowed, which is ok in abstract classes.

Question: 3

Can you store multiple data types in system.array?

No

Question: 4

Can multiple catch blocks be executed?

No. once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block.

Question: 5

What are all the data types that are not supported by CLS?

sbyte,

uint ,

ulong,

ushort

All these data types are available in C#.

Related Questions