KyaPoocha.com

Huge Collection of Interview Questions


‘C# Interview Questions’ - KyaPoocha.com

C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write? 

Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there’s no implementation in... Read more »

What’s the implicit name of the parameter that gets passed into the class’ set method ? 

Value, and its datatype depends on whatever variable we’re changing.  Read more »

What does Dispose method do with the connection object ? 

Deletes it from the memory.  Read more »

What does the parameter Initial Catalog define inside Connection String ? 

The database name to connect to.  Read more »

What’s the data provider name to connect to Access database ? 

Microsoft.Access.  Read more »

Why would you use untrusted verificaion ? 

Web Services might use it, as well as non-Windows applications.  Read more »

What connections does Microsoft SQL Server support ? 

Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords).  Read more »

What’s the role of the DataReader class in ADO.NET connections 

It returns a read-only dataset from the data source when the command is executed.  Read more »

What’s the difference between the Debug class and Trace class ? 

Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.  Read more »

What does the This window show in the debugger ? 

It points to the object that’s pointed to by this reference. Object’s instance data is shown.  Read more »

What’s the difference between and XML documentation tag ? 

Single line code example and multiple-line code example.  Read more »

How do you generate documentation from the C# file commented properly with a command-line compiler ? 

Compile it with a /doc switch.  Read more »

What’s the difference between // comments, /* */ comments and /// comments ? 

Single-line, multi-line and XML documentation comments.  Read more »

What namespaces are necessary to create a localized application ? 

System.Globalization, System.Resources.  Read more »

What’s a satellite assembly ? 

When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized... Read more »

Page 2 of 11«12345»...Last »