.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sandeep Singh
Mayuri
stevemarkayden
kumarfurima
Preethi


Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Post New Question Subscribe to Interview Questions
 
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
BiztalkPatten/Practices.IISWCFWPFWWF
NetworkingAptitudeOthers  All    
 

Interview Questions And Answers

What are the types of Filters in AngularJS?

Author: Santhakumar Munuswamy          Posted Date: October 01, 2015    Category: Others     Points: 40

It can use filter format data for display to the user. It is used formatted value of an expression applied to your output data.

Types of Filters

1. Currency
2. Date
3. Filter
4. Lowercase
5. LimitTo
6. Json
7. OrderBy
8. Uppercase

What is the difference between AngularJs and Backbone.js ?

Author: Santhakumar Munuswamy          Posted Date: September 06, 2015    Category: Others     Points: 40

AngularJs

1. ~142 KB total (compressed and minified)
2. V1.4.2 & MIT (Open-source)
3. No Dependencies
4. It supports full data binding and provides options for creating custom data bindings
5. It supports routing feature and it's very simple

Backbone.js

1. ~ 7.3 KB total (gzip / minified)
2. V1.2.1 & MIT (Open-source
3. Dependends on underscore.js and jQuery
4. Does not support data binding by default but does using plugins for data bindings
5. It supports routing features and it's very simple

Read more here: http://www.c-sharpcorner.com/UploadFile/f2823e/angularjs-comparison-with-backbone-knockout-part-3/

What are the types of Binding in WCF?

Author: Santhakumar Munuswamy          Posted Date: September 06, 2015    Category: WCF     Points: 40

Binding is nothing; how the service can be access with different endpoints.

Types of Binding

1. BasicHttpBinding
2. WsHttpBinding
3. WsDualHttpBinding
4. WsFederationHttpBinding
5. NetTcpBinding
6. NetNamedPipeBinding
7. NetMsMqBinding
8. NetPeerTcpBinding

What are the types of contract in WCF?

Author: Santhakumar Munuswamy          Posted Date: September 06, 2015    Category: WCF     Points: 40

WCF support four types of contract as following
1. Service Contracts
2. Data Contracts
3. Message Contracts
4. Fault Contracts

What are the settings to be done for the Routing to work properly in an MVC application ?

Author: Alankar          Posted Date: April 06, 2015    Category: MVC     Points: 40

The settings must be done in 2 places for the routing to work properly.They are:

i) Web.Config File : In the web.config file, the ASP.NET routing has to be enabled.
ii) Global.asax File : The Route table is created in the application Start event handler, of the Global.asax file.

In an MVC application, what are the segments of the default route ?

Author: Alankar          Posted Date: April 06, 2015    Category: MVC     Points: 40

There are 3 segments of the default route in an MVC application.They are:

The 1st segment is the Controller Name.
Example: search

The 2nd segment is the Action Method Name.
Example: label

The 3rd segment is the Parameter passed to the Action method.
Example: Parameter Id - MVC

Explain about NonActionAttribute ?

Author: Alankar          Posted Date: April 02, 2015    Category: MVC     Points: 40

It is already known that all the public methods of a controller class are basically treated as action methods.
If you dont want this default behaviour, then you can change the public method with NonActionAttribute. Then, the default behaviour changes.

xplain about 'page lifecycle' of ASP.NET MVC ?

Author: Alankar          Posted Date: April 02, 2015    Category: MVC     Points: 40

The page lifecycle of an ASP.NET MVC page is explained as follows:

i) App Initialisation
In this stage, the aplication starts up by running Global.asax's Application_Start() method.
In this method, you can add Route objects to the static RouteTable.Routes collection.
If you're implementing a custom IControllerFactory, you can set this as the active controller factory by assigning it to the System.Web.Mvc.ControllerFactory.Instance property.

ii) Routing
Routing is a stand-alone component that matches incoming requests to IHttpHandlers by URL pattern.
MvcHandler is, itself, an IHttpHandler, which acts as a kind of proxy to other IHttpHandlers configured in the Routes table.

iii) Instantiate and Execute Controller
At this stage, the active IControllerFactory supplies an IController instance.

iv) Locate and invoke controller action
At this stage, the controller invokes its relevant action method, which after further processing, calls RenderView().

v) Instantiate and render view
At this stage, the IViewFactory supplies an IView, which pushes response data to the IHttpResponse object.

Mention some of the return types of a controller action method ?

Author: Alankar          Posted Date: April 02, 2015    Category: MVC     Points: 40

An action method is used to return an instance of any class which is derived from ActionResult class.
Some of the return types of a controller action method are:
i) ViewResult : It is used to return a webpage from an action method
ii) PartialViewResult : It is used to send a section of a view to be rendered inside another view.
iii) JavaScriptResult : It is used to return JavaScript code which will be executed in the user's browser.
iv) RedirectResult : Based on a URL, It is used to redirect to another controller and action method.
v) ContentResult : It is an HTTP content type may be of text/plain. It is used to return a custom content type as a result of the action method.
vi) JsonResult : It is used to return a message which is formatted as JSON.
vii) FileResult : It is used to send binary output as the response.
viii) EmptyResult : It returns nothing as the result.

What is the use of a controller in an MVC application ?

Author: Alankar          Posted Date: April 02, 2015    Category: MVC     Points: 40

A controller will decide what to do and what to display in the view. It works as follows:

i) A request will be received by the controller
ii) Basing on the request parameters, it will decide the requested activities
iii) Basing on the request parameters, it will delegates the tasks to be performed
iv) Then it will delegate the next view to be shown



Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend