Mvc(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. 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
Explanation:-
Answer: Option B. -> It checks for valid Model State using DataAnnotations
Question 2. Can we use view state in MVC?
Yes
No
Both A & B
None
Explanation:-
Answer: Option B. -> No
Question 3. List out few different return types of a controller action method?
View Result
Javascript Result
Redirect Result
All of these
Explanation:-
Answer: Option D. -> All of these
Question 4. 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
Explanation:-
Answer: Option D. -> All of the above
Question 5. In the model-view-controller (MVC) architecture, the model defines the
Data-access layer
Presentation layer
Business-logic layer
Interface layer
Explanation:-
Answer: Option C. -> Business-logic layer
Question 6. FilterConfig.cs file is under in which App folder?
App_Data
App_Start
Content
Filters
Explanation:-
Answer: Option B. -> App_Start
Question 7. 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
Button tooltips
Both A and D
Explanation:-
Answer: Option E. -> Both A and D
Question 8. Which is more faster between ASPX View Engine and Razor View Engine.
ASPX View Engine
Razor View Engine
Both A & B
None
Explanation:-
Answer: Option A. -> ASPX View Engine
Question 9. . . . . . helps you to maintain data when you move from controller to view.