C# Interview Questions with Answers Pdf - 2

Question: 6

What class is underneath the SortedList class?

A sorted HashTable

Question: 7

Can you store multiple data types in System.Array?

No

Question: 8

What is the C# syntax to catch any possible exception?

A catch block that catches the exception of type System.Exception.

You can also omit the parameter data type in this case and just write catch {}.

Question: 9

What is an interface class?

Interfaces, like classes, define a set of properties, methods and events.

But unlike classes, interfaces do not provide implementation.

They are implemented by classes and defined as separate entities from classes.

Question: 10

Can you inherit multiple interfaces?

Yes, .NET does support multiple interfaces.

Related Questions