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

Question:
. Is it possible to have a static indexer in C?

1. Yes

2.no

3.all of the above

4.None of the mentioned


Question:
.Give one word: What model does ASP.NET request processing is based on

1.Pipeline

2.Waterfall

3.Top-down

4.Bottom-up


Question:
.How many classes can a single .NET DLL contain?

1.One

2.Two

3.Three

4.many


Question:
.Select the output of the statement < form method=post action=”test.aspx” >

1.Transfers all the form data to test.aspx with HTTP headers

2.Transfers all the form data to test.aspx with out HTTP headers

3.Calls post method on test.aspx

4.none of the above


Question:
.The number of forms that can be added to a aspx page is

1.2

2.3

3.1

4.None of the mentioned


Question:
.To set page title dynamically in ASP.NET which of the following is used?

1.< head > section

2.<tail > section

3.<sheet > section

4.none of the above


Question:
.You are creating a custom control. The UI of the control must contain several text
boxes and two buttons. The control must be available in the global assembly cache
for reuse across multiple Web applications. You need to achieve this functionality
by using the minimum amount of code. What should you do?

1. Create a control that derives from System.Web.UI.Control.

2.Create a control that derives from System.Web.UI.WebControls.CompositeControl.

3. Create a control that derives from System.Web.UI.WebControls.WebControl.

4.Create a control that derives from System.Web.UI.UserControl.


Question:
A client side already has 25 COM objects and if the requirement is to add a 26th
function that must exists only for .NET object without affecting the existing one how
to achieve the above?

1.By CCW

2.By RCW

3.By RCA

4.none of the above


Question:
ASP.NET separates the HTML output from program logic using a feature named
as

1.Exception

2.Code-behind

3.Code-front

4.Code-front


Question:
Caching is considered as the best way to enhance the performance of the
application.

1.Yes

2.no

3.all of the above

4.None of the mentioned


Question:
Can we run asp.net application without WEB.CONFIG file?

1.Yes

2.no

3.all of the above

4.None of the mentioned


Question:
Does web service have a state?

1.Yes

2.no

3.all of the above

4.None of the mentioned


Question:
How do you add ASP.Net 3rd party component?

1.By add/Remove items in the project menu

2.Add reference of dll file and place the code where ever required

3.Cannot add 3rd party component to asp.net

4.None of the mentioned


Question:
How do you turn off the Session state for a webform ?

1.. In Web.config file set the tag to True

2. In Web.config file set the tag to false

3.Set the Session state to false in webform properties window

4.Set the EnableSession state to false in webform properties window


Question:
If a developer of ASP.NET defines style information in a common location. Then
that location is called as

1.Master Page

2.Theme

3. Customization

4.none of the above


Question:
If one uses ASP.NET configuration system to restrict access which of the following
is TRUE?

1.The access is restricted only to ASP.NET files

2.The access is restricted only to static files and non-ASP.NET resources.

3.Both A and B

4.none of the above


Question:
In an ASP.NET application, can we add more than one WEB.CONFIG files. Can it
run?

1.. Yes

2.no

3.all of the above

4.None of the mentioned


Question:
In ASP.NET if one uses Windows authentication the current request attaches an
object called as

1.Serialization

2.WindowsPrincipal

3.WindowDatset

4.none of the above


Question:
In ASP.NET if you want to allows page developers a way to specify static
connections in a content page then the class used is

1.WebPartManager

2. ProxyWebPartManager

3.System.Activator

4.none of the above


Question:
In ASP.NET page framework an automatic way to associate page events and
methods is

1. AutoEventWireup attribute of the Page directive is set to true

2.AutoEventWireup attribute of the Page directive is set to False

3.It is not possible to set automatically page events and methods

4.none of the above


Question:
In ASP.NET what does the following return
< % Response.Write(System.Environment.WorkingSet.ToString())%>

1.Gives the memory working set

2.Return Null value

3.Gives Error

4.Gives Error


Question:
Is it possible to Override Private Virtual methods.

1.Yes

2.no

3.all of the above

4.None of the mentioned


Question:
Is it Possible to Serialize HashTable with XMLSerializer?

1.Yes

2.no

3.all of the above

4.None of the mentioned


Question:
On which of the operating system below ASP.NET can run?

1.Windows XP Professional

2.Windows 2000

3.Both A) and B)

4.none of the above


Question:
Setting the following properties for object in ASP.NET results in Response.Buffer =
True Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0,
0))Response.Expires = 0 Response.CacheControl = "no-cache

1. The session expires

2.Clears the buffer area

3.. Avoid page to be cached

4.none of the above


Question:
The code will be processed on web server when the runat attribute of the < Script >
tag has the following value?

1.Desktop

2. Client

3.Server

4.None of the mentioned


Question:
The control used in ASP.NET to display information from data set but with better
formatting and editing behavior is

1.Panel

2.Button

3.DataList

4.none of the above


Question:
The default size cache of a 128mb RAM is

1.128mb

2.384mb

3.3.256mb

4.512mb


Question:
The main event fired when we call bind method in a datagrid

1.First: GridView_DataBinding , Then, GridView_RowCreated

2.First:GridView_RowCreated, Then,GridView_DataBinding

3.GridView_DataBinding

4.First: GridView_DataBinding , Then, GridView_RowCommand


Question:
The object used by SQL connection to make Security Demands

1.SQLLCientAttribute

2. SQLPermission

3. SQLPermissionClient

4.SQLClientPermission


Question:
To test a Web service you must create a windows application or Web application to
consume this service?

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
Web Controls Supports CSS

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
What does Response.End will do?

1. It will stop the server process

2. It will stop the client process

3.None of the above

4.All of the Mentioned


Question:
What is the advantage of Disconnected mode of ADO.Net in ASP.Net(user data can
update and retrieve in dataset and when connection connected, update values with
server)

1.Automatically dump data at client PC

2.Not necessary to connect with server

3.user data can update and retrieve in dataset and when connection connected, update values with server

4.All of the above


Question:
What is the default authentication mode for IIS?

1.Windows

2.Anonymous

3.Basic Authentication

4.None


Question:
What is the difference between HTTP handlers & HTTP modules?

1.Httphandler is an class and Httpmodule is an assembly

2.Httphandler is an event handler and httpmodule is module to do some task

3. Both of the above

4.none of the above


Question:
what is the difference between user control and custom control

1.Both can use as drag and drop tool

2.. Both are same

3.Both can use different application

4.One Custom Control can be use in different project but not the same with User control


Question:
What is the maximum size of query string?

1.384 bytes

2. 128 bytes

3.255 bytes

4. 512 bytes


Question:
What is the transport protocol you use to call a Web service?

1.HTTP

2.SMTP

3. TCP

4.SOAP


Question:
Where do you store the information about the user’s locale?

1.System.Web.UI

2.System.Web.UI.Page.Culture

3.System.Web.UI.Page

4. System.Web.Form


Question:
Which are the components of a strong name?

1.Name of the assembly

2.version number

3.Culture identity

4.All of these


Question:
Which Namespace is used for event log support?

1.System.Reflection;

2.System.Diagnostics

3. System.Collections

4. System.Web.UI


Question:
Which of the following can be used to debug .NET application?

1.Visual Studio .NET

2.Runtime Debugger

3.Systems.Diagnostics classes

4.All the above


Question:
Which of the following extension does a webservice file will have?

1..asmx

2..aspx

3. .ascx

4..resx


Question:
Which of the following is not a member of ADODBCommand object-?

1.ExecuteReader

2.ExecuteScalar

3.ExecuteStream

4.Open


Question:
Which of the following languages can be used to write server side scripting in
ASP.NET?

1.C#

2.C

3.Visual Basic

4.None of the mentioned


Question:
You are creating a templated Web control for use in your Web application. You
need to add the Web control to your Web application pages without compiling your
control into a .dll file. What should you do?

1.. Ensure that the Web control inherits from the WebControl class.

2.Ensure that the Web control inherits from the Control class

3.Ensure that the Web control inherits from the CompositeControl class

4.Ensure that the Web control inherits from the UserControl class.


Question:
You are creating a Web application that will run on an intranet. The Web
application reads comma-delimited text files. The text files reside in a subdirectory
below the Web application's root directory. Users must not be able to navigate
directly to these files in a Web browser unless they are members of the Accounting
role. You need to write an ASP.NET HTTP handler that will use the
FileAuthorizationModule class. Which form of authentication should you use?

1.. Anonymous

2.Certificate

3.Forms

4.Microsoft Windows Integrated Security


Question:
You are transferring records from one database to another. You need to decide
whether you can use the SqlBulkCopy class to transfer the records. What should
you do?

1.Ensure that the source database is Microsoft SQL Server

2.Ensure that the destination database is Microsoft SQL Server

3.Ensure that the column names in the source table match the column names in the destination

4.Ensure that the bulk copy program (bcp) utility is installed on the destination server


Question:
You create a Web site. The Web site has many predefined roles and associated
users that will be used for security purposes. You need to manage these roles and
user accounts.Which tool should you use?

1.the Microsoft .NET Framework Configuration tool

2.the Code Access Security Policy tool

3.the ASP.NET IIS Registration tool

4.the Web Site Administration Tool


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