MVC/MVC MCQ Quiz Sample Test,Sample questions

Question:
 Can we use view state in MVC?

1.Yes

2.No

3. Both A & B

4.None


Question:
 In the model-view-controller (MVC) architecture, the model defines the

1.Data-access layer

2. Presentation layer

3.Business-logic layer

4.Interface layer


Question:
 Which Name space is used to create chart using ASP.Net MVC?

1.using System.Web.MVCB. C. D. All

2.using System.Web.Helpers

3.using System.Web.Chart

4.All of these


Question:
 Which of the following is TRUE?

1.Action method can be static method in a controller class

2.Action method can be private method in a controller class

3.Action method can be protected method in a controller class

4.Action method must be public method in a controller class


Question:
Explain what are the steps for the execution of an MVC project?

1.Receive first request for the application

2.Performs routing

3.Creates MVC request handler

4.All of the above


Question:
FilterConfig.cs file is under in which App folder?

1.App_Data

2.App_Start

3.Content

4. Filters


Question:
For controller action method . . . . . returns nothing as the result.

1. ResultEmpty

2.EmptyResult

3.ReturnEmpty

4.EmptyReturn


Question:
For which ModelState.IsValid Validate?

1.It checks for Entityframework Model state

2.It checks for valid Model State using DataAnnotations

3. It checks for SQL database state

4.None of These


Question:
helps you to maintain data when you move from controller to view.

1.View Bag

2.View Data

3.Temp Data

4.None of the above


Question:
How can we add Series to MVC Charts?
A. 

1..AddSeries(chartType: "Bar", xValue: xValue, yValues: yValue)

2.AddSeries(chartType: "Bar", xValue = xValue, yValues = yValue)

3.AddSeries(chartType: "Bar", xValue: xValue, yValues: yValue)

4.None


Question:
How to check all errors of Model using ASP.Net MVC?

1.var errors = Model.Values.SelectMany(v => v.Errors)

2.var errors = ModelState.SelectMany(v => v.Errors)

3.var errors = ModelState.Values.SelectMany(v => v.Errors)

4.None of the above


Question:
In which format data can be return from XML into table?

1.DataSet

2.Datatable

3.A and B

4.None


Question:
List out few different return types of a controller action method?

1. View Result

2.Javascript Result

3.Redirect Result

4.All of the these


Question:
MVC is composed of three components:

1.Member Vertical Controller

2.Model View Control

3.Model View Controller

4.Model Variable Centered


Question:
RedirectToAction() Method for which Status code represents?

1.304

2.302

3.301

4.300


Question:
What are the various types of filters in an ASP.NET MVC application?

1.Authorization filters

2.Action filters

3.Result filters

4.All of the these


Question:
What is default authentication in Internet Information Services (IIS)?

1.Standard User

2.Administrator

3.Anonymous

4.None of these


Question:
What is the extension of MVC view when using vb.net?

1.cshtml

2.vbhtml

3.None

4.Both A & B


Question:
Which filter will be execute at last using ASP.Net MVC?

1.Action filters

2.Authorization filters

3.Exception filters

4.Response filters


Question:
Which is more faster between ASPX View Engine and Razor View Engine.

1.ASPX View Engine

2.Razor View Engine

3. Both A & B

4.None


Question:
Which Name space is used to create chart using ASP.Net MVC?

1.using System.Web.MVC

2.using System.Web.Helpers

3.using System.Web.Chart

4.All of the above


Question:
Which of following is TRUE?

1.The controller redirects incoming request to model

2.The controller executes an incoming request

3. The controller controls the data

4.The controller render html to view


Question:
Which of the following method of html helper generates html control based on the data type of specified property?

1.Html.TextBox

2.Html.Password

3. Html.Editor

4. Html.Display


Question:
Which of the following methods are used to render partial view?

1. Html.Partial()

2.Html.RenderPartial()

3. Html.RenderAction()

4.All of the above


Question:
Which of the following view file types are supported in MVC?

1..cshtml

2..vbhtml

3..aspx

4.All of the above


Question:
You are globalizing an application and are compiling a list of items that need to be translated. Which items should be included on the list?

1.Images that are used as part of the menu structure

2.The company logo

3.Server error-logging messages

4.Both A and D


More MCQS

  1. MVC MCQ Quiz
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!