ASP.NET%20MVC/ASP.Net%20MVC%20Multiple%20choice Sample Test,Sample questions

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

1.Data-access laye

2.Business-logic layercorrect

3.Presentation layer

4.Interface layer

Posted Date:-2022-11-08 04:56:33


Question:
 The namespace for ___ is System.Web.Mvc.WebFormViewEngine

1.Razor View Engine

2.Aspx View Engine

3.both (a) and (b)

4.None of These

Posted Date:-2022-11-07 15:29:13


Question:
 What are HTML helpers?

1.DropDownList()

2.Hidden()

3.Password()

4.All of the above

Posted Date:-2022-11-07 17:25:11


Question:
 what is the disadvantages of MVC model?

1.The model pattern is little complex

2.Multiple technologies knowledge is required

3.You need multiple programmers for parallel development

4.All of the mentioned above

Posted Date:-2022-11-08 04:59:32


Question:
 Which of following is the best approach to assign a session in MVC?

1.System.Web.HttpContext.Current.Session["LoginID"] =7;

2.Current.Session["LoginID"] =7;

3.Session["LoginID"] =7;

4.Nonewrong

Posted Date:-2022-11-08 04:55:26


Question:
 Your ASP.NET MVC web application has just been released to a group of pilot users. The users are reporting periods of extreme performance degradation. You did not encounter performance issues during development or the quality assurance phase. What can you do in your development environment to understand what is occurring in the production environment?

1.Create a set of web tests that exercise the application. Using a step approach, start with a minimal number of users and increase to the total number of users in the pilot program

2.Create a set of unit tests that repeatedly test certain parts of the application. Run them continuously over a period of time to ensure that the application works as expected.

3.Create a set of web tests that exercise the application. Using a goal-based approach, set the process to run to 75 percent CPU utilization. When you reach that point, compare the results with the numb

4.All of the above

Posted Date:-2022-11-08 05:24:43


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

1.Data-access laye

2.Business-logic layer

3.Presentation layer

4.Interface layer

Posted Date:-2022-11-08 06:03:39


Question:
. MVC is composed of three components These are ?

1.Member Vertical Controller

2.Model Variable Centered

3.Model View Controller

4.Member Vertical Controller

Posted Date:-2022-11-08 05:58:01


Question:
ASPX View Engine supports for TDD.

1.True

2.False

3.Error

4.Can not say

Posted Date:-2022-11-07 16:54:36


Question:
For razor views the file extensions are ______________ .

1..cshtml: If C# is the programming language

2.vbhtml: If VB is the programming language

3.both 1 & 2

4.None

Posted Date:-2022-11-08 05:02:59


Question:
Howmany types of result in MVC?

1.11

2.12

3.13

4.10

Posted Date:-2022-11-08 05:05:25


Question:
In MVC, Ajax can be implemented in _____________ ways

1.Ajax libraries

2.Jquery

3.both (a) and (b)

4.None of the above

Posted Date:-2022-11-08 05:01:15


Question:
In RouteConfig.cs file which of the following is an optional parameter?

1.Controller

2.Action

3.Id

4.None

Posted Date:-2022-11-07 15:31:35


Question:
Model View Controller is the full form of MVC
correct

1.True

2.False

3.Error

4.Can't say

Posted Date:-2022-11-08 04:31:45


Question:
MVC is composed of three components These are ?

1.Member Vertical Controller

2.Model Variable Centered

3.Model View Controller

4.Member Vertical Controller

Posted Date:-2022-11-08 04:34:18


Question:
The model is a _______

1.Shape of data

2.Html content

3.Collection of data

4.Type of data

Posted Date:-2022-11-08 05:31:33


Question:
we can use view state in MVC ?

1.True

2.False

3.Error

4.Can not say

Posted Date:-2022-11-08 04:36:08


Question:
What are HTML helpers?

1.DropDownList()

2.Hidden()

3.Password()

4.All of the above

Posted Date:-2022-11-07 17:26:33


Question:
What are the Filters in MVC?

1.Result Filters

2.Exception Filters

3.both (a) and (b)

4.All of the above

Posted Date:-2022-11-07 17:27:36


Question:
What are the Main Razor Syntax Rules?

1.Inline expressions (variables and functions) start with

2.Code statements end with a semicolon

3.Variables are declared with the var keyword

4.All of the mentioned

Posted Date:-2022-11-07 17:22:22


Question:
What are the MVC model 3 logic layers?
A. The business layer (Model logic)
B. The display layer (View logic)
C. 

1.The business layer (Model logic)

2.The input control (Controller logic)

3.The input control (Controller logic)

4.All of the above

Posted Date:-2022-11-07 17:09:36


Question:
What are the segments for routing?

1.ControllerName

2.ActionMethodName

3.Parameters

4.All of the mentioned

Posted Date:-2022-11-07 17:19:56


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

1.Execute Controller

2.Invoke action

3.Execute Result

4.All of the above

Posted Date:-2022-11-07 17:23:14


Question:
What are the types of the result in MVC?

1. FileContentResult

2.FileStreamResult

3.FilePathResult

4.All of the mentioned

Posted Date:-2022-11-07 17:17:40


Question:
What is MVC application life cycle?

1.Creating the request object

2.Creating Response object

3.both (a) and (b)

4.None

Posted Date:-2022-11-07 17:18:50


Question:
What is MVC?

1. The Model represents the application core (for instance a list of database records)

2.The View displays the data (the database records)

3.The Controller handles the input (to the database records)

4.All of the above

Posted Date:-2022-11-07 17:06:55


Question:
what is strongly typed view in mvc

1.view created with the model clas

2.view having the same name as the class

3.view created with strong keyword

4.view created with a controller class Boost your answering level by preparing with these ASP.Net MVC Quiz Questions. Follow us on the freshersnow.com portal for more interesting updates.

Posted Date:-2022-11-08 05:28:25


Question:
What is the advantages of MVC?

1.MVC segregates your project into a different segment, and it becomes easy for developers to work on

2. It is easy to edit or change some part of your project that makes project less development and maintenance cost

3.MVC makes your project more systematic

4.All of the mentioned

Posted Date:-2022-11-08 04:57:40


Question:
What is the extension of MVC view when using C#?

1.Cshtml

2.Vbhtml

3.None

4.All of the above

Posted Date:-2022-11-08 04:52:04


Question:
What is the extension of MVC view when using C#?
A. Cshtmlcorrect
B. Vbhtml
C. Nonewrong
D. All of the above
 Viewstart comes under which folder name ?

1.Views

2.Account

3.Shared

4.Home

Posted Date:-2022-11-08 04:53:17


Question:
Which are the important namespaces used in MVC?

1.System.Web.Mvc.Html

2.System.Web.Mvc.Async

3.both (a) and (b)

4.None

Posted Date:-2022-11-08 04:30:44


Question:
Which of the following are Actionselectors in ASP.NET MVC?

1.ActionName

2.NonAction

3.ActionVerbs

4.All of the above

Posted Date:-2022-11-07 15:24:07


Question:
Which of the following are return types of a controller action method?

1.RedirectResult

2.JavaScriptResult

3.ViewResult

4.All of the above

Posted Date:-2022-11-07 15:26:56


Question:
Which of the following is an abstract class?

1.ActionResult()

2.ViewResult()

3.Both A & B

4.None

Posted Date:-2022-11-07 15:30:41


Question:
Which of the following is false about the HtmlHelper class?

1.It is designed to generate UI

2.It should be used in controllers or models class

3.both (a) and (b)

4.None of these

Posted Date:-2022-11-07 16:55:36


Question:
Which of the following is server-side validation?

1.Database Validation

2.ASP.NET MVC Validation

3.JavaScript validation

4.Both (A) and (B)

Posted Date:-2022-11-07 15:26:08


Question:
Which of the following is the correct way to provide Height and Width to MVC Charts?

1.new Chart(width = 400, height = 200)

2.new Chart(width: 400, height: 200)

3.new Chart(width- 600, height- 400)

4.All of them

Posted Date:-2022-11-07 16:59:23


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

1.Cshtml

2.Vbhtml

3.Both A & B

4.None

Posted Date:-2022-11-08 04:32:33


Question:
Why should you create a custom role provider? 

1.To use the SimpleRoleProvider

2. To use a database design different than .NET provides

3.both (a) and (b)

4.None of These

Posted Date:-2022-11-08 05:26:07


Question:
You are designing an application in which a section of the main page will be populated by content from a third-party provider. You do not have control over the responsiveness of the client or how much information will be returned with each request. The call is to a Restful service and will return the information formatted in Extensible Markup Language (XML). What is the best way to implement this application?

1.You have an online diary with two form fields, a title, and a large subject box. A title is not required, and the subject content is stored in a database column with no maximum size.

2.The web application you maintain has an area that serves as a pass-through to another company's web services. The form contains personal information, such as address and phone number, and is used

3.Your application is a long wizard that college students use to apply for financial aid. They do not have access to the application until they are already logged on to the system so the application kno

4.None of These

Posted Date:-2022-11-08 05:15:32


Question:
You are writing an action method called AddProduct inside the Product controller. The logic in your code indicates that you need to call the Cart controller's Add method as a result of your controller's action method. Which line of code would accomplish this?

1.return Content("Cart.Add")

2. Response.Redirect("Cart.aspx?Add")

3.return redirect("Cart/Add")

4.None of These

Posted Date:-2022-11-08 05:27:02


Question:
You have written a shareware application and want to sell it on your personal website. You are considering various approaches for distributing the application after users purchase it. Which of the following is the best approach?

1.Use the FileResult action result to initiate the file download.

2.Convert the application to an encoded string and provide it for download through the ContentResult

3.Create a view or partial view that contains an action link to a route in which the user can download the file.

4.All of the above

Posted Date:-2022-11-08 05:21:27


Question:
You inherited a working application that began as a proof of concept but was eventually adopted as a production application without being refactored. Many new requirements need to be added. As part of your initial analysis, you notice a lot of problems with bad data. Which solutions will help remediate this issue?

1.Adding code contracts to ensure that the input parameters have expected values

2.Adding code contracts to ensure that the return values meet specific criteria

3.Adding code contracts to ensure that objects do not become invalid during the process

4.All of the above

Posted Date:-2022-11-08 05:22:55


Question:
Your company has joined an industry accessibility group and you are a member. As one of your responsibilities, you have been asked to estimate the time it would take to modify your corporate site for accessibility. What should you consider to properly estimate the required time? (

1.The level of current usage of HTML helpers in your views

2.The complexity of your data entry forms

3.The amount of text in the website

4.Both (a) and (b)

Posted Date:-2022-11-08 05:20:17


Question:
_ is not strongly typed.

1.@Html.TextBox

2.@Html.TextBoxFor

3.Both A & B

4.None

Posted Date:-2022-11-07 16:57:23


Question:
__ is default authentication in IIS.

1.Administrator

2.Anonymous

3.Standard User

4. None

Posted Date:-2022-11-07 15:32:54


Question:
__represents a text result

1.ViewResult

2.JsonResult

3.ContentResult

4.JavaScriptResult

Posted Date:-2022-11-07 15:22:20


Question:
__________is the name of default Viewstart Page in ASP.Net MVC.

1._ViewStart.cshtml

2._Login.cshtml

3._Layout.cshtml

4.None

Posted Date:-2022-11-08 04:54:09


Question:
__________namespace is used for ASPX View Engine.

1.System.Web.Razor

2.System.Web.Mvc.WebFormViewEngine

3.Both A & B

4.None of the above

Posted Date:-2022-11-08 04:50:42


Question:
___________namespace is used for ASPX View Engine.

1.System.Web.Razor

2.System.Web.Mvc.WebFormViewEngine

3.Both A & B

4.None of the above

Posted Date:-2022-11-08 05:59:38


Question:
_____________Request Processing technique follows ASP.Net?

1.Top-Down

2.Down-Up

3.Pipeline

4.Waterfall

Posted Date:-2022-11-08 06:05:13


More MCQS

  1. MVC ASP.Net Multiple Choice Questions
  2. ASP.Net MVC Multiple choice
  3. ASP.Net MCQs Set 1
  4. ASP.Net MCQs Set 2
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!