Here are list of .NET Framework Interview Questions. To get the answer of these .NET Framework Interview Question, click here.
- What are Web services?
- What are session management techniques in .NET?
- What is MVC (Model View Controller) pattern?
- How to use trace in libraray classes (like BAL, DAL)?
- What is gacutil.exe?
- What is boxing and unboxing?
- What provider ADO.NET use by default?
- Difference between Response.Expires and Response.ExpiresAbsolute?
- What is CLR (Common Language Runtime)?
- Write a function into Javascript that will toggle display a HTML element.
- When to use String and StringBuilder class?
- Which statement is correct in terms of try catch finally block?
- String is a value type or reference type?
- List few ValueTypes variables.
- What is the use of RCW & CCW?
- What is StringCollection?
- Where reference and value types variables are stored?
- What is Singleton pattern?
- What does apsx stand for?
- What is CTS?
- What is CLS?
- What is MSIL?
- What is Satellite Assembly?
- What is RSS?
- What is application domain?
- What is Remoting in .NET?
- What is Property?
- Can you assign GridView.DataSource = DataReader()?
- Can a DataAdapter.Fill method take DataTable as parameter or it works only for DataSet?
- What is typed dataset ?
- Can you place two .dll files with the same name in GAC (Global Assembly Cache)?
- What's the difference between private and shared assembly?
- What is the location of Global Assembly Cache on the system.
- What is JIT (Just-in-time) Compiler ?
- What is Managed and Unmanaged code?
- What is the difference between Namespace and Assembly?
- What is Manifest?
- What is Metadata?
- What is CODE Access security?
- What’s difference between System.SystemException and System.ApplicationException?
- What is multi-threading?
- Which namespace threading contains?
- What the way to stop a long running thread ?
- What is the diffeernce between Overload and Override?
- How many web.configs can an application have?
- Where do you store connection string?
- What is abstract class
- What are the collection classes?
- list the object-oriented concepts
- What is difference between interface inhertance and class inheritance?
- What are Abstract base classes?
- When is web.config called?
- What does connection string consist of?
- What is a runtime host?
- What inheritance does VB.NET support?
- Differences between application and session ?
- What is web application virtual directory
- If cookies is disabled in client browser, will session tracking work?
- What is a Process, Session and Cookie?
- Explain serialization?
- What is the difference between overloading and overriding ? how can this be .NET?
- Explain friend and protected friend?
- What is isPostback property?
- Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component?
- How to retrieve the last error occured in the application?
- How to clear the last error occured in the application?
- when we do the searchpattern in
Directory.GetFiles(DirectoryPath, Filter)
it will show the 5.docx files two times. - Whats MSIL, and why should my developers need an appreciation of it if at all?
- Can I use the Win32 API from a .NET Framework program?
- What are Dead letter queues?
- what are the various ways of hosting a WCF service?
- can we force garbage collector to run?
- What is the difference between debug build and release build?
- Difference between String and Stringbuilder reference types?
- How do you configure the SOAP (Simple Object Access Protocol) to associate with particular web method?
- Your Web site processes book orders. One of the application methods contains the following code segment.XmlDocument doc = newXmlDocument();doc.LoadXml(“<book><discount>10</discount>”+”<title>Dictionary</title></book>”);You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal?
- Garbage Collection (GC) is a one of the data structure collection in .NET Framework.
While creating Web Service through visual studio template, which namespaces are include automatically? - What is the primary purpose of Namespace property, which is used in WebServices attribute?
- Which page is used to display the link of webmethods in ASP.NET web services?
- What are the three main section of SOAP (Simple Object Access Protocol) message?
- For SOAP (Simple Object Access Protocol) message formatting what is the purpose of Encoded value?
- Which method is used to serialize an object into an XML document from Xmlserializer class?
- What value can be used when setting the direction of the SOAP header?
- Which is a true statement for BeforeSerialize stage of an in-coming request message occurs?
- What is true for namespace in .NET Framework?
- What is Manifest?
- whats the similarilty & difference between .dll extension and .exe extension files?
- If I write System.exit (0); at the end of the try block, will the finally block still execute ?
- What is the difference between Master- Detail view and MVG?
- Difference between VB.NET and C#.
- Name a feature which is common to all .NET languages?
- Most Important Questions in Interview
- What event can you subscribe to if you want to display information from SQL Print statements?
- Advantages of Crystal Reports
- What is the Difference between Web.config and Machine.config?
- What’s the difference between Response.Write() andResponse.Output.Write()?
- From the following which datatype is not supported in RangeValidator?
- What is the Global.asax used for?
- What does the "EnableViewState" property do? Why would I want it on or off?
- What is GC in NET Framework?
- What is the common language runtime (CLR)?
- What is the common type system (CTS)?
- What is the Microsoft Intermediate Language (MSIL)?
- What is managed code and managed data?
- What is strong name?
- What is portable executable (PE)?
- What is Code Access Security (CAS)?
- Which namespace is the base class for .net Class library?
- What is serialization in .NET?
- What is Deserialization in .NET?
- What is exception handling?
- What are the contents of assembly?
- What are the different types of assemblies?
- What is the difference between a private assembly and a shared assembly?
- How to find methods of a assembly file, without using ILDASM?
- What is the difference between ref & out parameters?
- What is the difference between Array and Arraylist?
- What is Jagged Arrays?
- What are indexers?
- What is Interop Services?
- What is RCW?
- What is CCW?
- What is Pinvoke?
- What is side-by-side Execution?
- How you will Hide Column(s) in the Windows Forms DataGridView Control?
- What is the CAS ? .How to implement CAS ?
- What is an application domain?
- In which Event all the Controls will be loaded(in asp.net)?
- Machine.config will be created automatically when you
- In a connection-oriented socket, Which Protocal is used to establish a session (connection) between two IP address endpoints.
- Which Account type choose to minimize security risks?
- In Which method to stops running thread ?
- which of the following encoding type the largest file size?
- Where does global.asax Live?
- Which property of textbox cannot be change at run time?
- ________ is new type introduced in C#4.0?
- How can we access COM object in C#4.0?
- ________is one of the new feature added in C# 4.0 ?
- How many classes can a single .NET DLL contain?
- How many .NET languages can a single .NET DLL contain?
- Webservices support data reader.
- Can we have two files with the same file name in GAC?
- Difference between String and StringBuilder class?
- Does ADO.NET supports automatic connection pooling?
- Does CLR impose a strict versioning policy for the private assembly?
- How .NET Framework 2.0 tackles the unhandled exceptions?
- What are the differences between .NET Framework 3.0 and 3.5?
- What is Runtime Host ?
- In how many ways you can deploy an Asp.Net Application?
- This serves as a wrapper for a globally unique identifier (GUID) for a COM class…
- This is generalized Clipboard format containing view of the data, and a storage medium indicator…
- This Contains values that are used to create buttons on a toolbar…
- This Enum is used with TextFieldParser Object to determine either fields are delimited or fixed width…
- This namespace provides classes to run the Assembly Registration tool from managed code…
- This namespace is used for constructing the communication pipeline between a host application and an add-in…
- To manage installer of custom componenet the namespace used is,…
- Which one is faster ?
- System.Collections.Specialized Namespace contains…
- HybridDictionary Class implements…
- IOrderedDictionary elements can be accessed with,…
- Hashtable with the key and the value strongly typed to be strings rather than objects is with class,
- ColorPalette Class provided colors are…
- ColorMatrix Class is…
- ColorMode specifies…
- Scan0 is used to…
- ColorChannelFlag Enumeration is in…
- With which class you can compare types of images ? With which property ?
- Base interface to know all contracts used for communication between auto updated components is…
- This represents a symbol binder for managed code…
- With which enum you can know whether a calendar is solar-based, lunar-based, or lunisolar-based…
- This class defines the period of daylight saving time…
- Web.config info get stored in...
- Culture-specific display of digit(number)s can be achieved with...
- Which method is used to serialize an object into an XML document from Xmlserializer class?
- can we assign Null value to Struct variable.
- What is the difference between a Struct and a Class?
- What is the .NET collection class that allows an element to be accessed using a unique key?
- What does the term immutable mean?
- Can you store multiple data types in System.Array?
- What exactly a Constructor is doing ?
- If a method is marked as protected internal who can access it?
- Why is Global.asax is used for ?
- What are Jagged Arrarys ?
- WHat is HttpModule
- What are the major processes that handle a request in Dot Net ?
- What is the use of System.Web namespace?
- Which casing should be used to declare name of class, as per the Microsoft coding standard?
- Which casing should be used to declare name of interface, method and Namespace, as per the Microsoft coding standard?
- Which casing should be used to declare name of Parameter, as per the Microsoft coding standard?
- How do we store the same named assemblies in GAC? Whether its possible?
- Can you please tell me about the typed dataset?
- What is the class to access FTP?
- Tell me a method to access a COM dll in .NET?
- What is side-by-side execution? Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?
- Why string is called Immutable data Type?
- How does assembly versioning work?
- How does CAS work?
- What's the difference between the Debug class and Trace class?
- What is the difference between the value-type variables and reference-type variables in terms of garbage collection?
- What's the advantage of using System.Text.StringBuilder over System.String?
- What's a satellite assembly?
- Describe the difference between a Thread and a Process?
- What is the difference between an EXE and a DLL?
- What is strong-typing versus weak-typing?
- How do you generate a strong name?
- What is the difference between a Debug and Release build?
- Explain the importance and use of each, Version, Culture and PublicKeyToken for an assembly.
- How to install a strong named assembly to GAC at command prompt?
- What is GAC?
- How to create Key Pair?
- What do you mean by ActiveX components?
- Which namespace in .NET is used in networking programming?
- What is the name of C# command line compiler?
- What is an Assembly in .NET?
- What is the base class for all .NET classes?
- Why HashTable is used?
- Which namespace is used to create a multi-threaded application?
- What is the role of compiler?
- What is the namespace to use LINQ to XML?
- What are the elements inside an assembly?
- what is Reflection?
- what namespace is used for the controls in a mobile web application?
- Which assembly is used for Mobile web application?
- Which file sets the environment variables for Visual Studio?
- Which namespace provides classes for Regular Expression?
- What is the use of System.SystemException namespace?
- Which class is the base class of all the exception classes?
- Which namespace is used to work with RSS feeds in .NET?
- Which namespace is used to create an Exception Tree?
- How can we open the disassembler from Dot Net Command prompt ?
- Sorting on a Datatable
- What is a DependencyProperty and How to implement it?
- What is Covariance and Contravariance ?
- What is equivalent for regsvr32.exe in .NET?
- Which design pattern is implemented in the below code snippet?
using System;
public class MyClass
{
private static MyClass instance;
private MyClass() {}
public static MyClass Instance
{
get
{
if (instance == null)
{
instance = new MyClass();
}
return instance;
}
}
} - Which NameSpace is used to get the information of events about the system, devices like Hard disk serial No, Operating System and Processor?
- What are the Expansions of MSIL, JIT, CLR, CTS, CLS, RCW?
- Which namespace contains the classes that required to serialize an object? Explain Object Serialization?
- Explain how to retrieve resources using ResourceManager class?
- What is code security? What are the types?
- Define Principal object?
- Explain declarative and imperative security?
- Define context menu?
- Explain the similarities and differences between arrays and collections?
- What is break mode? What are the options to step through code?
- How do we step through code?
- What are the debugging windows available?
- In .NET, which namespace contains classes used to
a)Create a localized application?
b)Develop Web Forms?
c)Create Web server controls?
d)Access Sql Server?
e)Read a File? - What is the concept of Automatic Memory Management in ASP.NET?
- What are the ways to retain variables between requests?
- Explain how to dynamically clone a menu in .NET?
- What are Merge module projects?
- Describe XCOPY deployment. Under what conditions is it useful? When can it not be used?
- Define the list of properties, methods and events included in SmtpClient class in the Framework?
- What is Network Load Balancing?
- How can you change priority and what the levels of priority are provided by .NET?
- What is an application pool?
- How can you bind the debug failed assembly?
- What is the Difference between Compiler and Translator?
- In which way you can copy the COM component to the server and register?
- Can we create web application with out web.config file?
- Which is an example of Pascal Casing ?
- Which class defines the methods for implementing drawings, shapes, writing
strings in a GUI based application? - What will be the output of this program?
using System;
class Class2
{
Class2()
{
static int i;
i++;
Console.WriteLine(i);
}
static void Main()
{
Class2 a = new Class2();
Class2 b = new Class2();
}
} - Can classes be marked as protected or private ?
- Do events have a return type?
- Which encoding does not allow Chinese or Arabic characters?
- What are the differences between an interface and an abstract class.
- Which dll is known as the dll for microsoft .NET runtime ?
- What is the difference between casting and boxing?
- Which of these files are in the Config folder of the .net Framework?
- Which class is used to represent the Exceptions thrown by the CLR?
- Which of these classes is not derived from MemberInfo class?
- How you load dynamic assembly? How will create assemblies at run time?
- What is PInvoke?
- What is XSL?
- Differences between Window and Web Forms
- Which of these collections can be made as readonly?
- What is the difference between .NET 1.1,2.0,3.0,3.5 and 4.0 ?
- Which of these collections uses keys to uniquely identify the data?
- What is difference between out and ref in c#?
- What is .NET Framework?
- What is CLS?
- Which of these is a valid path declaration?
- Differences between method overloading and method overriding
- Which namespace defines the collection classes?
- Difference between an Assembly and DLL
- OOP .NET Interview question :- What is Polymorphism?
- What is MSIL?
- Difference between Finalize and Dispose methods ?
- How many classes a dll can contain?
- What is Serialization?
- Can abstract class have constructors?
- Difference between String.Empty and ""
- Difference between Environment.MachineName, SystemInformation.ComputerName
and Dns.GetHostName - What will be the output of this code?
using System;
class A
{
class B
{
public string str = "welcome";
}
}
class Demo
{
static void Main()
{
B Obj = new B();
Console.WriteLine(Obj.str);
}
} - How can you specify the framework version targetted by your application?
- Which controls cannot be placed on an MDI Form?
- Difference between imperative and interrogative code.
- Difference between a Class and Component?
- Difference between event and delegate?
- Is versioning applicable to private assemblies?
- What is Application Domain?
- What is Constructor Chaining?
- How many languages a .NET DLL can contain?
- Which of the following namespaces spans across multiple assemblies?
- What does a method's signature consist of?
- What is an assembly manifest?
- What is an application manifest?
- Which is true regarding the Delegates ?(select all that apply)
a)They can be written in a class as well as in a structure.
b)They can be static
c)They are not inherited - You are creating emp class whose objects need to be sorted when in an ArrayList collection. How can you do that?
- Which of these gives us the method name that throws the current exception?
- Which of these classes can be used to write string data?
- Which of these components can be used for printing?
- Difference between lock and Monitor.Enter()
- How can you write to a File System?
- How can you store decimals data precisely from .NET?
- Can you install multiple assemblies together?
- Difference between Assembly.LoadFrom() and Assembly.LoadFile() methods?
- Is MSIL a high/low/middle level language?
- Can we use static constructors to initialize non static members?
- Which Constructor gets fired first Static or Non-Static while creating an object of a class?
- Difference between Globalization and Localization ?
- Which debugging window can be used to view the variables in current and previous statements?
- On which of these locations, we cannot create a breakpoint?
- What are listeners?
- Which of these editors allows us to perform searches on the target machine for
a Registry key or Windows Installer components? - What are merge modules?
- .NET and Java J2ee Design pattern interview question :- What is the difference between Template and Strategy pattern?
- How the garbage collector knows when to collect garbage ?
- What is the difference between ASP.NET and VB.NET?
- What is an application domain?
- What is the difference between a strong and weak named assemblies?
- What are the different types of assemblies in .net?
To get the answer of these .NET Framework Interview Question, click here.