Skip to main content

Posts

Showing posts from December, 2016

ASP .Net MVC

ASp .Net MVC 1. Explain MVC (Model-View-Controller) in general? MVC (Model-View-Controller) is an architectural software pattern that basically decouples various components of a web application. By using MVC pattern, we can develop applications that are more flexible to changes without affecting the other components of our application. §    “Model”, is basically domain data. §    “View”, is user interface to render domain data. §    “Controller”, translates user actions into appropriate operations performed on model. 2. What is ASP.NET MVC? ASP.NET MVC is a web development framework from Microsoft that is based on MVC (Model-View-Controller) architectural design pattern. Microsoft has streamlined the development of MVC based applications using ASP.NET MVC framework. 3. Difference between ASP.NET MVC and ASP.NET WebForms? ASP.NET Web Forms uses Page controller pattern approach for rendering layout, whereas ASP.NET MVC uses Front con...

C#-Problamatic interview Questions

   Q-1. WHAT WILL BE THE OUTPUT OF THE FOLLOWING CODE SNIPPET? using System; public class emp {      public static int age = 40;      public static int salary = 25000; } public class record :emp {      new public static int salary = 50000;      static void Main(string[] args)      {          Console.WriteLine(emp.age + "  " + emp.salary + "  " + salary);      } } a) 40, 25000, 50000 b) 40, 25000, 25000 c) 40, 50000, 50000 d) Error Check correct option. Answer. a) Q-2. WHICH OF THE FOLLOWING KEYWORD, ENABLES TO MODIFY THE DATA AND BEHAVIOR OF A BASE CLASS BY REPLACING ITS MEMBER WITH A NEW DERIVED MEMBER? a) overloads b) overrides c) new d) base Check correct opti...