ASP.Net/ASP.Net Mcq Question Set 10 Sample Test,Sample questions

Question:
 An ASP.NET page uses a Datagrid displays employee information.The Web application supports a large number of concurrent users, who will be saving data from the grid back to the database. It is important that the Web application doesn’t overwhelm the Web Server.

1.Disable View State and don’t use session state

2.Use View State

3.Use URL munging

4.Disable ViewState and use Session State

Posted Date:-2022-02-02 13:46:46


Question:
 Does MVC 6 was introduced new JSON project-based structure?

1.Yes

2.No

3.Both A & B

4.None

Posted Date:-2022-02-02 13:56:15


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 these

Posted Date:-2022-02-02 13:54:35


Question:
 What is/are the predefined TraceListener(s) in ASP.Net

1.TextWriterTraceListener

2.EventLogTraceListener

3.DefaultTraceListener

4.All the above 1, 2,3

Posted Date:-2022-02-02 13:45:09


Question:
 Which Kind Of data we can store in viewstate

1.Viewstate can store only serilizable object

2.Viewstate can store anything

3.Viewstate can store onlys string

4.None

Posted Date:-2022-02-02 13:44:48


Question:
 Which namespace is used for ASPX View Engine?

1.System.Web.Razor

2.System.Web.Mvc.WebFormViewEngine

3.Both A & B

4.None

Posted Date:-2022-02-02 13:51:02


Question:
 Which of the followings are Actionselectors?

1. ActionName

2.NonAction

3.ActionVerbs

4.All of the above

Posted Date:-2022-02-02 13:51:50


Question:
 Which of these classes maps to the tag <input type=”checkbox”/>

1.HtmlCheckBox

2.HtlmInputCheckBox

3.HtmlControl

4.None

Posted Date:-2022-02-02 13:49:08


Question:
. Which of the following operations can you NOT perform on an ADO.NET DataSet?

1.A DataSet can be synchronised with the database

2.A DataSet can be synchronised with a RecordSet.

3.A DataSet can be converted to XML.

4.You can infer the schema from a DataSet.

Posted Date:-2022-02-02 14:08:30


Question:
. You have a TextBox control and a Help button that the user can press to get help on
allowable values. You validate the data entered by the user in the TextBox control.
If the user enters an invalid value, you set the focus back in the control using the
Cancel property of the CancelEventArgs. A user reports that once he enters invalid
data in the text box, he cannot click the Help button. What should you do to correct
the problem?

1.Set the CausesValidation property of the text box to false.

2.Set the CausesValidation property of the text box to true.

3. Set the CausesValidation property of the Help button to false.

4.Set the CausesValidation property of the Help button to true.

Posted Date:-2022-02-02 14:14:24


Question:
A project on which you are working calls for you to store small amount of
frequently changing information about a page on the client.For this project, security
is not a worry. Which is the best method to use?

1.A cookie

2.A query string

3.A URL

4.A hidden form field

Posted Date:-2022-02-02 14:15:56


Question:
A __________ control defaults to displaying the files in the current directory?

1.List Box

2.Drive List Box

3.Dir List Box

4.File List Box

Posted Date:-2022-02-02 14:09:11


Question:
By default, ASP.NET store SessionIDs in ____

1.Cookies

2. Cache

3. Database

4.Global variable

Posted Date:-2022-02-02 13:49:46


Question:
Can you call SQL Trigger from ASP.NET application explicitly?

1.Yes

2.No

3.None of them

4. All of the mentioned

Posted Date:-2022-02-02 14:07:31


Question:
Do I need IIS to develop a Web application in ASP.NET 2.0?

1.Yes

2.no

3.all of the above

4. none of the mentioned

Posted Date:-2022-02-02 15:35:25


Question:
For separating server-side code from client-side code on a ASP.NET page, what
programming model should you use?

1.Separation model

2.Code-Behind model

3.In-Line model

4.ClientServer model

Posted Date:-2022-02-02 14:08:01


Question:
How can you come out from the c# windows Forms Application?

1.Application.Exit();

2. Application.close();

3.Form.Exit();

4.Form.Close();

Posted Date:-2022-02-02 14:12:09


Question:
How can you get the ColumnName,DataType ColumnSize,
IsKeyColumn,IsAutoIncrement of the table from the dataset?

1.GetSchemaTable method of the DataReader

2.Fill method of data adaptor

3.GetTableDetails method

4.Dataset.GetDataTable()

Posted Date:-2022-02-02 14:10:05


Question:
How does ASP.NET store SessionIDs by default?

1.In cache

2.In cookies

3.In a global variable

4.In URL strings or in a database

Posted Date:-2022-02-02 15:35:07


Question:
How to find out what version of ASP.NET I am using on my machine?

1. Response.Write(System.Environment.Version.ToString() );

2.Response.Write(Version.ToString() );

3.Response.Write(System.Version.ToString() );

4.Not possible

Posted Date:-2022-02-02 13:46:22


Question:
How will you specify the Cache Location?

1.You can use browser settings to specify where a page is cached.

2.You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached.

3.You can use the Location attribute in QueryString to specify where a page is cached.

4.None of the above.

Posted Date:-2022-02-02 13:58:23


Question:
If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?

1. Maintain the login state security through a database.

2. Maintain the login state security through a Session.

3.Maintain the login state security through a View State.

4.All of the above

Posted Date:-2022-02-02 13:47:57


Question:
In order for hidden-field values to be available during page processing, you must
submit the page using an HTTP POST command.

1.True

2.False

3.all of the above

4.None of the above.

Posted Date:-2022-02-02 14:07:06


Question:
In order for query string values to be available during page processing, you must
submit the page using an HTTP GET command.

1.True

2.False

3.all of the above

4. none of the mentioned

Posted Date:-2022-02-02 14:06:45


Question:
The model is a ____

1.Shape of data

2.Html content

3.Collection of data

4.Type of data

Posted Date:-2022-02-02 13:50:38


Question:
We have defined one page_load event in aspx page and same page_load event in code behind who will run first?

1. page_laod event in aspx page

2. page_load event in code-behind

3.both will run simultaneously

4.None

Posted Date:-2022-02-02 13:45:34


Question:
what are the Activation modes for .NET Remoting?

1.Singleton

2.Singlecall

3. Both

4.None

Posted Date:-2022-02-02 14:11:05


Question:
What debugging tools come with the .NET SDK?

1.CorDBG – command-line debugger

2.Dbg CLR – graphic debugger

3.Both A and B

4.none of the above

Posted Date:-2022-02-02 14:09:40


Question:
What is ActionResult()?

1. It is an abstract Class

2. It is a Concrete Class

3.Both A and B

4.None

Posted Date:-2022-02-02 13:51:26


Question:
What is the last stage of the Web forms lifecycle?

1.Event Handling

2.Page_Load

3.Validate

4.Page_Unload

Posted Date:-2022-02-02 15:33:52


Question:
What is the name of the configuration files that the App_Start folder contains?

1.BundleConfig.cs

2.FilterConfig.cs

3.RouteConfig.cs

4.All of these

Posted Date:-2022-02-02 13:55:05


Question:
What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to the server?

1.IsCallback

2.IsReusable

3.IsValid

4.IsPostBack

Posted Date:-2022-02-02 13:57:50


Question:
What is the name of the property of ASP.NET page that you can query to determine
that a ASP.NET page is being requested not data being submitted to web server?

1.FirstGet

2.Initialized

3.IncludesData

4.IsPostBack

Posted Date:-2022-02-02 14:06:20


Question:
What namespace does the Web page belong in the .NET Framework class
hierarchy?

1.System.Web.Control

2.System.Web.RootBuilder

3.System.Web.UserControl

4.System.Web.UI.Page

Posted Date:-2022-02-02 15:36:00


Question:
What Request Processing technique follows ASP.Net?

1. Top-Down

2.Down-Up

3.Pipeline

4.Waterfall

Posted Date:-2022-02-02 13:55:55


Question:
What’s the difference between Response.Write() and Response.Output.Write()?

1.The First one allows you to write formatted output.

2.The latter one allows you to write formatted output.

3.No Difference

4.The latter one allows you to write unformatted output.

Posted Date:-2022-02-02 13:47:29


Question:
Where we can assign value to Static read only member variable of a static class?

1. Default constructor

2.Parameterized constructor

3.Global.asax

4.On click of button

Posted Date:-2022-02-02 13:48:17


Question:
Where would you define application and session level events?

1.Global.asax

2.Default.aspx

3.Web.Config

4.General.aspx

Posted Date:-2022-02-02 15:36:29


Question:
Which file you should write for the connection string so that you can access it in all the web pages for the same application?

1.In App_Data folder

2.In Web.config file

3.In MasterPage file

4.none of the above

Posted Date:-2022-02-02 13:59:12


Question:
Which of the following events will fire when the Insert key is pressed?

1.KeyDown

2.KeyPress

3.KeyUp

4.KeyDown,KeyPress

Posted Date:-2022-02-02 14:13:52


Question:
Which of the following is a requirement when merging modified data into a DataSet?

1.A primary key must be defined on the DataTable objects

2.The DataSet schemas must match in order to merge

3.The destination DataSet must be empty prior to merging

4.A DataSet must be merged into the same DataSet that created it.

Posted Date:-2022-02-02 13:44:19


Question:
Which of the following represents the best use of the Table, TableRow, and Table-Cell controls?

1. To create and populate a Table in Design view

2.To create a customized control that needs to display data in a tabular fashion

3.To create and populate a Table with images

4.To display a tabular result set

Posted Date:-2022-02-02 13:45:57


Question:
Which of the function is used to check textbox only contain number? 

1.char.IsDigit

2.char.IsLetter

3.char.IsNumber

4.char.IsLetterOrDigit

Posted Date:-2022-02-02 14:10:34


Question:
Which of these files takes the web application in offline mode?

1. app_offline.html

2.app_offline.htm

3.appoffline.html

4.None of these

Posted Date:-2022-02-02 13:48:45


Question:
While creating a Web site with the help of Visual Studio 2005 on a remote computer that does not have Front Page Server Extensions installed, which Web site type will you create in Visual Studio 2005?

1.HTTP

2.File

3. FTP

4.All of the above

Posted Date:-2022-02-02 13:47:07


Question:
WIF enables you to create a custom token. To be able to use the token, you must create a custom token handler by overriding which of the following?

1.SecurityToken

2. SecurityTokenHandler

3. SWTToken

4.Saml2SecurityTokenHandler

Posted Date:-2022-02-02 13:55:32


Question:
You are creating an order-tracking application using a Visual C# .NET Windows
application. When you are unable to track a particular order number entered by
the user, you need to raise an exception. Which of the following options will help you
to raise an exception?

1.try block

2.catch block

3. finally block

4.throw statement

Posted Date:-2022-02-02 14:13:25


Question:
You are designing a Windows Form that enables you to add a new product to the
product catalog of your company. You need to validate the controls as the user
enters the data. If incorrect data is entered in the field, you should set the focus back
to the control and ask the user to enter the correct data. Which of the following
events will you use to validate user input?

1.LostFocus

2.Validating

3.Leave

4.Validated

Posted Date:-2022-02-02 14:14:53


Question:
You have designed a logon form with two TextBox controls named txtUserName
and txtpassword. You want to ensure that the user can enter only lowercase
characters in the controls. Which of the following solutions will fulfill this
requirement using the simplest method?

1.Program the KeyPress event of the TextBox controls to convert uppercase letters to lowercase letters

2.Create a single event handler that is attached to the KeyPress event of the form. Program this event handler to convert the uppercase letters to lowercase ones.

3.Set the CharacterCasing property of the Textbox controls to Lower.

4.Use the CharacterCasing method of the controls to convert the letters to lowercase letters

Posted Date:-2022-02-02 14:12:49


Question:
___ attributes can be used for data validation in MVC.

1.DataAnnotations

2.Fluent API

3.DataModel

4.HtmlHelper

Posted Date:-2022-02-02 13:56:36


More MCQS

  1. ASP.Net Mcq Question Set 1
  2. ASP.Net Mcq Question Set 2
  3. ASP.Net Mcq Question Set 3
  4. ASP.Net Mcq Question Set 4
  5. ASP.Net Mcq Question Set 5
  6. ASP.Net Mcq Question Set 6
  7. ASP.Net Mcq Question Set 7
  8. ASP.Net Mcq Question Set 8
  9. ASP.Net Mcq Question Set 9
  10. ASP.Net Mcq Question Set 10
  11. ASP.Net Mcq Question Set 11
  12. ASP.Net Mcq Question Set 12
  13. ASP.Net Mcq Question Set 13
  14. ASP.Net Mcq Question Set 14
  15. Silverlight mcq questios and answer
  16. Microsoft Silverlight MCQ Questions & Answers
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!