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

Question:
. Advantages of WCF over Web Services? (Windows communication Foundation)

1.WCF can create services similar in concept to ASMX

2.WCF is implemented on pipeline

3.WCF is more secure, reliable

4.All the above

Posted Date:-2022-02-03 09:40:24


Question:
. what is its lifetime of a Static variable?

1.Can Be accessed even Outside of the Program

2.Throughout the execution of a program

3.Inside a function

4.none of the above

Posted Date:-2022-02-03 09:40:48


Question:
After capturing the SelectedIndexChanged event for a ListBox control, you find
that the event handler doesn’t execute. What could the problem be?

1.The AutoEventWireup attribute is set to False

2.The AutoPostBack attribute is set to False

3.The codebehind module is not properly compiled

4.. The ListBox must be defined WithEvents

Posted Date:-2022-02-02 15:48:59


Question:
An abstract class is one in which methods are defined but an object of this class
cannot be instantiated. This type of a class can only be derived but cannot be
instantiated.

1.true

2.False

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 09:41:38


Question:
An organization has developed a web service in which the values of the forms are
validated using ASP.NET application.Suppose this web service is got and used by a
customer then in such a scenario which of the following is TRUE

1.The customer must be having technology that run ASP.

2.Such a situation cannot happen at all

3.The customer can run on any platform.

4.none of the above

Posted Date:-2022-02-03 09:50:14


Question:
Application domain is a way in CLR to maintain a boundary between various
applications to ensure that they do not interfere in working of any other application.

1.True

2.False

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 09:43:26


Question:
Can We Pass parameter to Crystal Report (.rpt) File ?

1.Yes

2.No

3.None of the above

4.All of the Mentioned

Posted Date:-2022-02-03 09:49:15


Question:
Can you edit data in the Repeater control?

1. True

2.False

3.all of the above

4. none of the mentioned

Posted Date:-2022-02-02 15:51:02


Question:
Can you prevent your class from being inherited by another class?

1. Yes

2.no

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 09:52:35


Question:
Difference between response.redirect and server.transfer.

1.response.redirect will take you to another page with out round trip

2.server.transfer will take the round trip from server to client

3.all the above

4.None of these

Posted Date:-2022-02-02 15:44:23


Question:
How do you explicitly kill a user’s session ?

1.Session.Close()

2.Session.Discard()

3.Session.Abandon()

4.Session.End()

Posted Date:-2022-02-02 15:41:03


Question:
How many types of cookies are there?

1.1

2.2

3.3

4.4

Posted Date:-2022-02-03 09:50:34


Question:
If cookies are not enabled at browser end does form Authentication work?

1.. Yes

2.No

3.Both Yes And NO

4.none of the above

Posted Date:-2022-02-03 09:52:16


Question:
In Which Page Cycle All Controls Are Fully Loaded?

1.Page_Load()

2.Page_Init()

3.Page_Render()

4.Page_Unload()

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


Question:
Singleton architecture is to be used when all the applications have to use or share
same data.

1.True

2. False

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 09:43:47


Question:
Team foundation is a ________ tier architecture

1.One

2.Two

3.Three

4.None

Posted Date:-2022-02-03 09:54:18


Question:
The process in which a web page sends data back to the same page on the server is
called?

1.PostBack

2.Session

3. Query strings

4.All the above

Posted Date:-2022-02-02 15:48:26


Question:
The public methods and properties of a master page can be accessed in a content
page by assigning a class name to the master page. Which directive can be used to
assign a class name to the master page?

1.<%@ Control %>

2.<%@ Master %>

3.<%@ MasterType %>

4.<%@ Page %>

Posted Date:-2022-02-02 15:39:02


Question:
Viewstate is the mechanism that automatically saves the values of the page's items
just after rendering the page. It stores items added to a page’s ViewState property
as hidden fields on the page.

1.True

2.False

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 09:43:07


Question:
What are WebMethod attribute properties

1. [WebMethod(EnableSession ="true")]

2.[WebMethod(MessageName = "SinInt")]

3.[WebMethod(TransactionOption = "Supported")]

4.All The About

Posted Date:-2022-02-03 09:53:21


Question:
What attribute must be set on a validator control for the validation to work?

1.Validate

2.. ValidateControl

3.ControlToBind

4.ControlToValidate

Posted Date:-2022-02-02 15:37:16


Question:
What base class do all Web Forms inherit from?

1.The Page class.

2.The Form class

3.The Session

4. All of the mentioned

Posted Date:-2022-02-02 15:51:40


Question:
What DataType is return in IsPostback property?

1.bit

2.Boolean

3.int

4.Strings

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


Question:
What is a Managed Data ?

1.Memory allocation/de-allocation is done by user

2.Memory allocation/ de-allocetion is done by CLR itself

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 09:42:00


Question:
What is default time of expire session?

1.20 minute

2.40 minute

3.100 minute

4.1200 hours

Posted Date:-2022-02-02 15:38:06


Question:
What is the event that is fired when an unhandled exception is encountered within
the application?

1.Page_Error

2. Application_Error

3.Application_Disposed

4. System_Error

Posted Date:-2022-02-03 09:51:52


Question:
What is the root namespace for all types?

1. Root

2.. System

3. Parent

4.Web

Posted Date:-2022-02-03 09:41:19


Question:
What is the Web.config file used for?

1.To store the global information and variable definitions for the application

2.Configures the time that the server-side codebehind module is called

3.To configure the web server

4.To configure the web browser

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


Question:
What’s the .NET collection class that allows an element to be accessed using a
unique key?

1.List

2.HashTable

3. ArrayList

4.Arry

Posted Date:-2022-02-03 09:50:59


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

1.Both are Same

2..Write Formatted Output

3.Write data to a file

4.None of these

Posted Date:-2022-02-02 15:49:49


Question:
What’s the top .NET class that everything is derived from? 

1.System.Object

2. System

3. System.Data

4.System.net

Posted Date:-2022-02-03 09:51:21


Question:
When the page processing cycle of ViewState is available?

1.Before init and After Page_Load() / OnLoad()

2.Before Page_Load() / OnLoad() and Before Init()

3.After Init() and Before Page_Load() / OnLoad()

4.After Init() and After Page_Load() / OnLoad()

Posted Date:-2022-02-02 15:50:16


Question:
When will a session be started in an application?

1. Before Application Started

2. After Application Started

3.When the Client first sends a request to browser

4.While closing the application

Posted Date:-2022-02-02 15:45:37


Question:
Which are the two properties of a Datagrid that has to be specified to turn on
sorting and paging respectively?

1. EnableSorting=”true” and EnablePaging=”true”

2.. DisableSorting=”false” and DisablePaging=”false”

3.. AllowSoring=”true” and allowPaging=”true”

4. EnableSorting=”true” and allowPaging=”true”

Posted Date:-2022-02-02 15:47:04


Question:
Which control is used to sort the data and allow paging?

1.. Datalist

2.Repeater Control

3.DataGrid

4.None of these

Posted Date:-2022-02-02 15:46:02


Question:
Which control would you use if you needed to make sure the values in two different
controls matched?

1.Required Field Validator

2.Custom Validator control

3.. CompareValidator control

4. Regular expression validator Control

Posted Date:-2022-02-02 15:43:23


Question:
Which data control does not exist in asp.net

1. GridView

2.DataList

3.Repeater

4.tableView

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


Question:
Which is not a validation control?

1.Required Field Validator

2.Compare Validator

3.Error Validator

4.Regular Expression Validator

Posted Date:-2022-02-02 15:45:12


Question:
Which method do you invoke on the Data Adapter control to load your generated
dataset?

1.Fill( )

2.Read( )

3.ExecuteQuery( )

4.None of these

Posted Date:-2022-02-02 15:40:02


Question:
Which method do you invoke on the DataAdapter control to load your generated
dataset with data?

1.DataBind()

2. Populate()

3. Bind

4.Fill()

Posted Date:-2022-02-02 15:50:41


Question:
Which namespace is used when we connect our asp.net page to sql server

1.System.data.sqlclient

2. System.data.sql

3.System.sqlserver

4.System.url

Posted Date:-2022-02-02 15:47:37


Question:
Which of the following contains web application settings?

1. app.config

2. web.config

3. assembly.config

4.machine.config

Posted Date:-2022-02-02 15:37:44


Question:
Which of the following is not a valid statement in ASP.Net?

1.Server.Transfer(“SomePage.aspx”);

2.Response.Redirect(“SomePage.aspx”);

3.Server.Redirect(“SomePage.aspx”);

4.Server.Execute(“SomePage.aspx”);

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


Question:
Which of the following is not supported for IIS?

1.Windows XP Professional

2.Windows XP Home

3.Windows 2003 Server

4.Windows 2000 Server

Posted Date:-2022-02-02 15:48:02


Question:
Which property common in every validation control?

1.ValueToCompare

2.ValidationExpression

3.ControlToValidate

4.. InitialValue

Posted Date:-2022-02-03 09:49:45


Question:
Which property on a Combo Box do you set with a column name, prior to setting
the DataSource, to display data in the combo box?

1.DataTextField property.

2.DataValueField Property

3.DataMember

4.None of these

Posted Date:-2022-02-02 15:43:57


Question:
Which statements are correct about asp.net AJAX ?

1.. ASP.NET AJAX is the name of Microsoft’s AJAX solution

2.AJAX refers to a set of client and server technologies that focus on improving web development with Visual Studio.

3.Microsoft AJAX Library is a JavaScript library that works on a variety of browsers and serves to simplify JavaScript development.

4. all the above

Posted Date:-2022-02-03 09:44:13


Question:
Which template must you provide, in order to display data in a Repeater control?

1.EditItemTemplate

2.ItemTemplate

3.all of the above

4.None of the above.

Posted Date:-2022-02-02 15:51:20


Question:
You are developing an asp.net page for www.abc.com , in that page you need to
provide an option to redirect to a web page that is in www.def.com. Which method
you should use to perform the task

1.Server.Transfer()

2.Response.Redirect()

3.Response.Transfer()

4.Request.Redirect()

Posted Date:-2022-02-03 09:53:53


Question:
You have created a new ASP.Net web application. You build the solution in Visual
Studio .Net. You notice that there is a /bin directory under the virtual directory.
Which type of files should you place in this location?

1.Assemblies that are used on only this one web application

2.Assemblies that are used on web sites on only this web server machine.

3.. Assemblies that are used by web applications anywhere on the network

4. Assemblies that are XCOPY’d to the location.

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


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!