Category Archives: .NET

ASP.NET questions, part 2

ASP.NET interview questions, part 1

Whats an assembly? Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly [...]

Also posted in Web dev | 19 Comments

.NET and COM interop questions

Describe the advantages of writing a managed code application instead of unmanaged one. What’s involved in certain piece of code being managed? The advantages include automatic garbage collection, memory management, support for versioning and security. These advantages are provided through .NET FCL and CLR, while with the unmanaged code similar capabilities had to be implemented [...]

Posted in .NET | 5 Comments

COM/COM+ services and components in .NET

Explain transaction atomicity. We must ensure that the entire transaction is either committed or rolled back.
Explain consistency. We must ensure that the system is always left at the correct state in case of the failure or success of a transaction.

Posted in .NET | 3 Comments

.NET Windows services development questions

Explain Windows service. You often need programs that run continuously in the background. For example, an email server is expected to listen continuously on a network port for incoming email messages, a print spooler is expected to listen continuously to print requests, and so on.
What’s the Unix name for a Windows service equivalent? Daemon.

Posted in .NET | 5 Comments

Microsoft .NET Framework interview questions

What is .NET Framework?
Is .NET a runtime service or a development platform? Answer It’s bothand actually a lot more. Microsoft .NET is a company-wide initiative. It includes a new way of delivering software and services to businesses and consumers. A part of Microsoft.NET is the .NET Frameworks. The frameworks is the first part of the [...]

Posted in .NET | 14 Comments

.NET Remoting questions and answers

To satisfy popular demand, here’s some basics of the .NET Remoting.

What’s a Windows process? It’s an application that’s running and had been allocated memory.
What’s typical about a Windows process in regards to memory allocation? Each process is allocated its own block of available RAM space, no process can access another process’ code or data. If [...]

Posted in .NET | 4 Comments

.NET interview questions - Windows Forms

Questions mainly relate to drawing and graphics programming in Windows Forms, when programming C# under .NET.

I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is too time-consuming with Graphics objects. Can I automate this? Yes, the code

System.Drawing.Graphics canvas = new System.Drawing.Graphics();
try
{
//some code
}
finally
canvas.Dispose();

is functionally equivalent to

using (System.Drawing.Graphics [...]

Posted in .NET | Leave a comment

.NET Windows Forms basics

Write a simple Windows Forms MessageBox statement.

System.Windows.Forms.MessageBox.Show
(”Hello, Windows Forms”);

Posted in .NET | 2 Comments

C# interview questions and answers

What’s the advantage of using System.Text.StringBuilder over System.String? StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it’s being operated on, a new instance is created.

Posted in .NET | 20 Comments

C# interview questions and answers

What’s the implicit name of the parameter that gets passed into the class’ set method? Value, and it’s datatype depends on whatever variable we’re changing.

Posted in .NET | 40 Comments

C# and .NET interview questions

How big is the datatype int in .NET? 32 bits.

Posted in .NET | 17 Comments

.NET framework programming interview questions

.NET framework overview

Has own class libraries. System is the main namespace and all other namespaces are subsets of this.
It has CLR(Common language runtime, Common type system, common language specification)
All the types are part of CTS and Object is the base class for all the types.

Posted in .NET | 6 Comments