Olete.in
Articles
Mock Tests
🧪 MVC MCQ Quiz Hub
MVC MCQ Quiz
Choose a topic to test your knowledge and improve your MVC skills
1. FilterConfig.cs file is under in which App folder?
App_Data
App_Start
Content
Filters
2. 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?
Images that are used as part of the menu structure
The company logo
Server error-logging messages
Both A and D
3. How can we add Series to MVC Charts? A.
.AddSeries(chartType: "Bar", xValue: xValue, yValues: yValue)
AddSeries(chartType: "Bar", xValue = xValue, yValues = yValue)
AddSeries(chartType: "Bar", xValue: xValue, yValues: yValue)
None
4. Which is more faster between ASPX View Engine and Razor View Engine.
ASPX View Engine
Razor View Engine
Both A & B
None
5. helps you to maintain data when you move from controller to view.
View Bag
View Data
Temp Data
None of the above
6. In which format data can be return from XML into table?
DataSet
Datatable
A and B
None
7. What is the extension of MVC view when using vb.net?
cshtml
vbhtml
None
Both A & B
8. Which of the following methods are used to render partial view?
Html.Partial()
Html.RenderPartial()
Html.RenderAction()
All of the above
9. How to check all errors of Model using ASP.Net MVC?
var errors = Model.Values.SelectMany(v => v.Errors)
var errors = ModelState.SelectMany(v => v.Errors)
var errors = ModelState.Values.SelectMany(v => v.Errors)
None of the above
10. MVC is composed of three components:
Member Vertical Controller
Model View Control
Model View Controller
Model Variable Centered
11. What are the various types of filters in an ASP.NET MVC application?
Authorization filters
Action filters
Result filters
All of the these
12. Which filter will be execute at last using ASP.Net MVC?
Action filters
Authorization filters
Exception filters
Response filters
13. RedirectToAction() Method for which Status code represents?
304
302
301
300
14. Which of the following view file types are supported in MVC?
.cshtml
.vbhtml
.aspx
All of the above
15. Which of the following is TRUE?
Action method can be static method in a controller class
Action method can be private method in a controller class
Action method can be protected method in a controller class
Action method must be public method in a controller class
16. For which ModelState.IsValid Validate?
It checks for Entityframework Model state
It checks for valid Model State using DataAnnotations
It checks for SQL database state
None of These
17. In the model-view-controller (MVC) architecture, the model defines the
Data-access layer
Presentation layer
Business-logic layer
Interface layer
18. Can we use view state in MVC?
Yes
No
Both A & B
None
19. List out few different return types of a controller action method?
View Result
Javascript Result
Redirect Result
All of the these
20. Explain what are the steps for the execution of an MVC project?
Receive first request for the application
Performs routing
Creates MVC request handler
All of the above
21. Which of following is TRUE?
The controller redirects incoming request to model
The controller executes an incoming request
The controller controls the data
The controller render html to view
22. Which Name space is used to create chart using ASP.Net MVC?
using System.Web.MVCB. C. D. All
using System.Web.Helpers
using System.Web.Chart
All of these
23. Which Name space is used to create chart using ASP.Net MVC?
using System.Web.MVC
using System.Web.Helpers
using System.Web.Chart
All of the above
24. For controller action method . . . . . returns nothing as the result.
ResultEmpty
EmptyResult
ReturnEmpty
EmptyReturn
25. Which of the following method of html helper generates html control based on the data type of specified property?
Html.TextBox
Html.Password
Html.Editor
Html.Display
26. What is default authentication in Internet Information Services (IIS)?
Standard User
Administrator
Anonymous
None of these
Submit