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

Posted Date:-2022-04-05 11:53:43


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

Posted Date:-2022-04-05 11:52:07


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

Posted Date:-2022-04-05 12:00:29


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

Posted Date:-2022-04-05 11:45:32


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

Posted Date:-2022-04-05 11:56:22


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

1.App_Data

2.App_Start

3.Content

4. Filters

Posted Date:-2022-04-05 11:04:43


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

1. ResultEmpty

2.EmptyResult

3.ReturnEmpty

4.EmptyReturn

Posted Date:-2022-04-05 12:10:17


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

Posted Date:-2022-04-05 11:47:40


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

Posted Date:-2022-04-05 11:15:55


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

Posted Date:-2022-04-05 11:07:55


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

Posted Date:-2022-04-05 11:22:36


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

1.DataSet

2.Datatable

3.A and B

4.None

Posted Date:-2022-04-05 11:17:37


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

Posted Date:-2022-04-05 11:55:12


Question:
MVC is composed of three components:

1.Member Vertical Controller

2.Model View Control

3.Model View Controller

4.Model Variable Centered

Posted Date:-2022-04-05 11:40:09


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

1.304

2.302

3.301

4.300

Posted Date:-2022-04-05 11:42:55


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

Posted Date:-2022-04-05 11:41:26


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

1.Standard User

2.Administrator

3.Anonymous

4.None of these

Posted Date:-2022-04-05 12:11:51


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

1.cshtml

2.vbhtml

3.None

4.Both A & B

Posted Date:-2022-04-05 11:18:27


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

1.Action filters

2.Authorization filters

3.Exception filters

4.Response filters

Posted Date:-2022-04-05 11:42:18


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

Posted Date:-2022-04-05 11:13:26


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

Posted Date:-2022-04-05 12:09:23


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

Posted Date:-2022-04-05 11:58:09


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

Posted Date:-2022-04-05 12:11:02


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

Posted Date:-2022-04-05 11:21:35


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

1..cshtml

2..vbhtml

3..aspx

4.All of the above

Posted Date:-2022-04-05 11:43:50


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

Posted Date:-2022-04-05 11:06:05


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!