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


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


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


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


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


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


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

1.Yes

2.No

3.None of the above

4.All of the Mentioned


Question:
Can you edit data in the Repeater control?

1. True

2.False

3.all of the above

4. none of the mentioned


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


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


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

1.Session.Close()

2.Session.Discard()

3.Session.Abandon()

4.Session.End()


Question:
How many types of cookies are there?

1.1

2.2

3.3

4.4


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


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

1.Page_Load()

2.Page_Init()

3.Page_Render()

4.Page_Unload()


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


Question:
Team foundation is a ________ tier architecture

1.One

2.Two

3.Three

4.None


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


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 %>


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


Question:
What are WebMethod attribute properties

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

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

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

4.All The About


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

1.Validate

2.. ValidateControl

3.ControlToBind

4.ControlToValidate


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


Question:
What DataType is return in IsPostback property?

1.bit

2.Boolean

3.int

4.Strings


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


Question:
What is default time of expire session?

1.20 minute

2.40 minute

3.100 minute

4.1200 hours


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


Question:
What is the root namespace for all types?

1. Root

2.. System

3. Parent

4.Web


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


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


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


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

1.System.Object

2. System

3. System.Data

4.System.net


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()


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


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”


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

1.. Datalist

2.Repeater Control

3.DataGrid

4.None of these


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


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

1. GridView

2.DataList

3.Repeater

4.tableView


Question:
Which is not a validation control?

1.Required Field Validator

2.Compare Validator

3.Error Validator

4.Regular Expression Validator


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


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()


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


Question:
Which of the following contains web application settings?

1. app.config

2. web.config

3. assembly.config

4.machine.config


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”);


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


Question:
Which property common in every validation control?

1.ValueToCompare

2.ValidationExpression

3.ControlToValidate

4.. InitialValue


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


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


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.


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()


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.


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
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite 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!