By admin | February 29, 2004
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 [...]
By admin | February 24, 2004
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 [...]
By admin | February 20, 2004
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.
By admin | February 18, 2004
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.
By admin | February 10, 2004
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 [...]
By admin | February 3, 2004
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 [...]
By admin | December 23, 2003
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 [...]
By admin | December 16, 2003
Write a simple Windows Forms MessageBox statement.
System.Windows.Forms.MessageBox.Show
(”Hello, Windows Forms”);
By admin | December 7, 2003
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.
By admin | December 7, 2003
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.
By admin | December 7, 2003
How big is the datatype int in .NET? 32 bits.
By admin | December 7, 2003
.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.