Support us .Net Basics C# SQL ASP.NET Aarvi MVC Slides C# Programs Subscribe Download

C# Interview Questions

  1. Can you store different types in an array in c# | Slides
  2. What is jagged array | Slides
  3. Why and when should we use an abstract class | Slides
  4. What are the advantages of using interfaces | Slides
  5. Recursive function c# example | Slides
  6. Real time example of recursion | Slides
  7. Storing different list types in a single generic list | Slides
  8. Can an abstract class have a constructor | Slides
  9. Calling an abstract method from an abstract class constructor | Slides
  10. What happens if finally block throws an exception | Slides
  11. Difference between is and as keyword | Sildes
  12. Difference between int and Int32 in c# | Sildes
  13. Reverse each word in a string using c# | Sildes
  14. C# abstract class virtual method | Sildes
  15. C# default constructor access modifier | Sildes


  1. Venkat Sir,
    In many interview the following question is asked : "What is the difference between three layer architecture and the three tier architecture?" Would you please discuss it with example?


  2. Before moving to understand what is difference between 3 Tier Architecture and 3 Layer architecture lets have an overview about what is Tier and What is Layer ???

    The layers reside on the same machine where the tiers can reside on different machines.

    Layer communicates with each other either by Value or by Reference. However the Tiers could be on different machines, so they communicate by Value only – as serialized objects.

    Layer is logical separation of code and Tier is physical separation of code, In other words we can say Tiers are the physical deployment of layers. Or a Tier becomes a Layer if it could be physically separated from the Layers it consumes.

    N-Tier Architecture is a physical structuring, while a N-Layer Architecture is a logical structuring.

    Now coming to 3 Layer Architecture and 3 Tier Architecture after getting an idea about Layer and Tier.

    In 3 layer architecture, the Database Access Layer (DAL), Business Logic Layer (BLL) and User Interface Layer (UIL) resides as 3 different project and the output of these 3 projects (.dll file) must be together in the same server or on same machine in order for the system to run.However in 3 tier architecture, the Database Access Layer (DAL), Business Logic Layer (BLL) and User Interface Layer (UIL) reside as 3 different projects. But each of the projects can be deployed at the different server or at the different machines and distributed functionality is explored.

    In 3 layer architecture DAL, BLL and UIL can work on same machine where as in a 3 Tier architecture a client in on one machine, the application Server is hosted in another machine and the database server resides in another machine i.e. Three-tier is a client–server architecture in which the User Interface, Business Logic , Data Storage and Data Access are developed and maintained as independent modules on separate platforms.

    In 3 Layer we have distinct namespaces and classes for the various layes i.e. we’re only talking about logical organization of code and passing objects between layers is easy as all assemblies will run under same application in single machine.But 3 tier applications are not straight as 3 layers, because each layer will be deployed in different machines. So here, we need a mechanism to send the objects between different machines over the network hence we use technologies called Web Services, Remoting or WCF, etc. in order to implement 3 tier applications

    3 Layer Architecture will improve readability and reusability, Minimizes the application changes due to impact of the changes in other layers. While 3 Tier Architecture has all advantages of 3 layer + scalability as application will be deployed in different machines so load will be shared among the tiers and scalability will increase.

  3. Inter viewer was asked a question when i was attend interview Can you explain Composition vs inheritance

  4. Hi, It would be good idea to design and develop a complete application(preferably win forms). If you get some time,you can start this new series. It will be very helpful to those who cannot afford the costly .Net course. thanks

  5. Hi Venkat
    Please add more Interview questions so that we don't need to look for another website for Interview Questions or Tutorials. Thanks

  6. awesome website to prepare .net all videos are very nice

  7. please add more interview questions for fresher's

  8. Hi Kudvenkat,

    please add real time example for interfaces in the interview question series.

  9. Hii Venkat
    Are u able make the two more videos 1. Connection Pooling 2. Object Pooling ..
    i am requesting to u , i knows theoretically.these question asked from me many times

  10. Dear Sir,
    I was asked that what are the types of controller in MVC.
    Please let me know

  11. Hello Venkat
    First i would like to thank you for giving such a amazing explanation in your videos,because of that only i got a job.
    Now in our company most of the projects are based on windows application.When i searched videos on windows based application i did't find so can you provide me videos based on windows application.
    Thank you once again.

  12. hello Mr. Venkat.. i have a question.. i have an asp .net app that use InProc mode on local PC. I have transfered the solution file to a development server that use SQLServer mode. It give me this error

    "Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode."

    Where do i put the serializable in the code.. Please help me.TQ so much for your help.

  13. Venkat Sir,

    Should I need to make my Business Access layer class as Singleton Class why and Why not?

  14. Hi Venkat Sir,
    recently i have attended an interview, in that interviewer asked me "can you tell me the difference between data abstraction and Encapulation" can you make a video on this


It would be great if you can help share these free resources