Followers

About this blog

who is the founder of reliance group?

Pages

C#.Net interview questions - part 1

What is the difference between Finalize() and Dispose()?

Latest answer: Dispose() is called by as an indication for an object to release any unmanaged resources it has held...........
Read answer

How does the XmlSerializer work? What ACL permissions does a process using it require?

Latest answer: The XmlSerializer constructor generates a pair of classes derived from XmlSerializationReader and XmlSerializationWriter by analysis of the classes using reflection........
Read answer

What are circular references? Explain how garbage collection deals with circular references.

Latest answer: A circular reference is a run-around wherein the 2 or more resources are interdependent on each other rendering the entire chain of references to be unusable........
Read answer

Explain how to add controls dynamically to the form using C#.NET.

Latest answer: The following code can be called on some event like page load or onload of some image or even a user action like onclick.......
Read answer

What are Extender provider components? Explain how to use an extender provider in the project.

Latest answer: An extender provider is a component that provides properties to other components..........
Read answer

Describe the configuration files in .Net. What are different types of configuration files in .Net framework?

Latest answer: The Machine.Config file, which specifies the settings that are global to a particular machine.......
Read answer

Describe the accessibility modifier "protected internal".

Latest answer: The Protected Internal access modifier can be accessed by:.....
Read answer

What is the difference between Debug.Write and Trace.Write? When should each be used?

Latest answer: Debug.Write: Debug Mode, Release Mode (used while debuging a project).......
Read answer

Explain the use of virtual, sealed, override, and abstract.

Latest answer: The virtual keyword enables a class to be overridden. If it has to be prevented from being overridden, then the sealed keyword needs to be used.........
Read answer

What benefit do you get from using a Primary Interop Assembly (PIA)?

Latest answer: A primary interop assembly contains type definitions (as metadata) of types implemented with COM. Only a single PIA can exist, which needs to be signed with a strong name by the publisher of the COM type library............
Read answer

Explain the use of static members with example using C#.NET.

Latest answer: Static members are not associated with a particular instance of any class.
They need to be qualified with the class name to be called.............

Read answer

How to achieve polymorphism in C#?

Latest answer: Polymorphism is when a class can be used as more than one type through inheritance. It can be used as its own type, any base types, or any interface type if it implements interfaces........
Read answer

What are implementation inheritance and interface inheritance?

Latest answer: Implementation inheritance is achieved when a class is derived from another class in such a way that it inherits all its members...........
Read answer

How to add a ReadOnly property in C#.NET?

Latest answer: Properties can be made read-only by having only a get accessor in the implementation........
Read answer

How to prevent a class from being inherited in C#.NET?

Latest answer: The sealed modifier is used to prevent derivation from a class. An error occurs if a sealed class is specified as the base class of another class.............
Read answer

What are generics in C#.NET?

Latest answer: Generic collection classes in the System.Collections.Generic namespace should be used instead of classes such as ArrayList in the System.Collections namespace............
Read answer

What is the use of GetCommandLineArgs() method in C#.NET?

Latest answer: With GetCommandLineArgs() method, the command line arguments can be accessed.
The value returned is an array of strings.............
Read answer

What is the use of System.Environment class in C#.NET?

Latest answer: The System.Environment class can be used to retrieve information like:.......
Read answer

What is the difference between const and readonly in C#.NET?

Latest answer: The read only can be modified by the class it is contained in. However, the const cannot be modified. It needs to be instantiated only at the compile time.........
Read answer

Advantages of CLR procedure over T-SQL procedure

Latest answer: The use of the CLR procedure makes it possible to do the complex database operations without having an in-depth knowledge of T-SQL..........
Read answer

How does C#.NET Generics and C++ Templates compare?

Latest answer: C# generics and templates in C++ are more or less similar syntactically..........
Read answer

What is an object pool in .NET?

Latest answer: It is a list of ready to use objects. Whenever a new request comes in for creating an object, then the application is served from this pool. This reduces the overhead of creating an object over and over again.............
Read answer

Why is an object pool required?

Latest answer: The request for the creation of an object is served by allocating an object from the pool. This reduces the overhead of creating and re-creating objects each time an object creation is required.............
Read answer

How does object pooling and connection pooling differ?

Latest answer: In Object pooling, you can control the number of connections. In connection pooling, you can control the maximum number reached........
Read answer

Explain how to Implement an Object Pool in C#.NET.

Latest answer: using System;
using System.Collections;..........
Read answer

Describe the three major components that make up a Web Service.

Latest answer: SOAP (Simple Object Access Protocol)
UDDI (Universal Description, Discovery and Integration)

WSDL (Web Services Description Language)...........
Read answer

Explain with code sample how to Implement a Web Service in .NET.

Latest answer: C# generics are a simpler approach to parameterized types without the complexity of C++ templates In addition, C# does not attempt to provide all of the functionality that C++ templates provide...........
Read answer

What is ILDASM and Obfuscator in NET?

Latest answer: ILDASM (Intermediate Language Disassembler)
De-Compilation is the process of getting the source code from the assembly...........
Read answer

Explain how Obfuscator works in NET

Latest answer: Obfuscator simply renames all types and namespace etc to meaningless code making it non human readable. This diminishes the possibility of reverse engineering...........
Read answer

What is an Exception in .NET?

Latest answer: Exceptions are errors that occur during the runtime of a program.
The advantage of using exceptions is that the program doesn’t terminate due to the occurrence of the exception...........

Read answer

Explain how to Handle Exceptions in .NET 2.0.

Latest answer: Exceptions should never be handled by catching the general System.Exception errors, rather specific exceptions should be caught and handled....:......
Read answer

What are Custom Exceptions? Why do we need them?

Latest answer: Custom exception needs to derive from the System.Exception class. You can either derive directly from it or use an intermediate exception like SystemException or ApplicationException as base class...........
Read answer

What are delegates and why are they required?

Latest answer: Delegates are like type safe function pointers. We need delegates as they can be used to write much more generic functions which are type safe also............
Read answer

Explain how to implement Delegates in C#.NET.

Latest answer: Here is an implementation of a very simple delegate that accepts no parameters............
Read answer

CLR Triggers

Latest answer: A CLR trigger could be a Date Definition or Date Manipulation Language trigger or could be an AFTER or INSTEAD OF trigger.............
Read answer

Steps for creating CLR Trigger

Latest answer: Follow these steps to create a CLR trigger of DML (after) type to perform an insert action:.............
Read answer.

What is an assembly in .NET?

Latest answer: An assembly is the primary unit of a .NET application. It includes an assembly manifest................
Read answer

What is a Constructor? What is a Destructor?

Latest answer: It is the first method that are called on instantiation of a type. It provides way to set default values for data before the object is available for use................
Read answer

Define abstract class in C#.NET.

Latest answer: Abstract class cannot be instantiated. Same concept in C++ known as pure virtual method............
Read answer

What is serialization in .NET?

Latest answer: Serialization is a process of converting an object into a stream of bytes. .Net has 2 serializers namely XMLSerializer and SOAP/BINARY Serializer............
Read answer

C#.Net support multiple inheritance, comment

Latest answer: No, but we can use interface instead................
Read answer

Can private virtual methods be overridden in C#.NET?

Latest answer: No, moreover, you cannot access private methods in inherited classes........
Read answer

Is is possible to force garbage collector to run?

Latest answer: Yes, we can force garbage collector to run using System.GC.Collect()..........
Read answer

What is the role of data provider in ADO.NET?

Latest answer: The .NET data provider layer resides between the application and the database. Its task is to take care of all their interactions.............
Read answer

Describe how a .Net application is compiled and executed.

Latest answer: From the source code, the compiler generates Microsoft Intermediate Language (MSIL) which is further used for the creation of an EXE or DLL. The CLR processes these at runtime. Thus, compiling is the process of generating this MSIL...........
Read answer

What is an Event? Define Delegate.

Latest answer: When an action is performed, this action is noticed by the computer application based on which the output is displayed...........
Read answer

Test your C#.NET knowledge with our multiple choice questions!

What is Language Integrated Query (LINQ)?

LINQ is a set of extensions to .NET Framework that encapsulate language integrated query, set and other transformation operations..................

NET Mobile overview.

.NET Mobile is a platform for developing applications for mobile phones. It’s an extension to .NET Framework and is called Microsoft Mobile Internet Toolkit..................

Category: 0 comments

0 comments:

Post a Comment

Search This Blog

Blog Archive