Collection of Interview Questions on  .NET Frameworks

1. What is the use of Menus?

  • Menus expose functionality to your users by holding commands that are grouped by a common theme.
  • The MenuStrip control is new to this version of Visual Studio and the .NET Framework. With the control, you can easily create menus like those found in Microsoft Office.
  • The MenuStrip control supports the multiple-documen
By: Pankaj Kumar Gupta   |    On:  15 May 2011 03:15:51

1. What is the difference between Authentication and Authorization?

Authentication is the process of identifying and verifying who the client accessing the server is. For example, if you use Windows authentication and are browsing an ASP.NET page from server, ASP.NET/IIS would automatically use NTLM to authenticate you as SYNCFUSION\user1 (for example). Forms based

By: Pankaj Kumar Gupta   |    On:  21 Mar 2011 20:58:26

1. What do you mean by Garbage Collection?

Garbage collection is a CLR feature which automatically manages memory. Programmers forget to release the objects while coding laziness (Remember in VB6 where one of the good practices is to set object to nothing). CLR automatically releases objects when they are no longer referenced and in use.CLR runs on non-deterministic to see the unused

By: Pankaj Kumar Gupta   |    On:  10 Mar 2011 09:59:54

1. What is .NET Remoting?

One Process can have multiple application domains and to invoke a method in an object running in different application domain .NET remoting is used. .NET remoting enables you to build widely distributed applications easily, whether application components are all on one computer or spread out across the entire world. You can build client applications that use

By: Pankaj Kumar Gupta   |    On:  10 Mar 2011 00:41:19

Answer:

  1. Binary Formatter
  2. XML Formatter

 

By: RRaveen   |    On:  04 Jan 2011 01:13:23

Answer:

A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.

By: RRaveen   |    On:  22 Dec 2010 10:12:34

Answer:

No.if one catch block excuted, then it will directlly go the final block if final block has in method.

Sample Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class TryCatch
    {
        public void SaveEmployee(string empID)
        {
            try
            {
                // few line of code here
            }
            catch (DllNotFoundException dex)
            {
                throw dex;
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}

above code only execute DllNotFoundException or Generic Exception if any exception occurred.

By: RRaveen   |    On:  22 Dec 2010 09:52:35

Answer:

  1. A DataSet is designed to work disconnected mode but ADO recordset is always work connected mode.
  2. There's no concept of cursor types in a DataSet but ADO RecordSet support to cursor types
  3. You can store many data version in a DataSet, and write them to the original data source in a single operation but ADO Recordset does support to more than one version
  4. DataSet can contain multiple tables but he RecordSet only one table
  5. RecordSet is Required More time than DataSet For data retrival
  6. DataSet is always better than the RecordSet compare for best performance.
  7. Dataset makes the relationship between the table that belongs in dataset.but there are no concepts like relations in ADO Recordset
  8. DataSet support to export many data formats such as XML, HTML and more but ADO Record set not.
  9. DataSet can represent an entire relational database in memory, complete with tables, relations, and views.
By: RRaveen   |    On:  09 Dec 2010 21:31:38
^ Scroll to Top