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

Posted Date:-2022-02-03 10:03:42


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

1.Pipeline

2.Waterfall

3.Top-down

4.Bottom-up

Posted Date:-2022-02-03 10:30:20


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

1.One

2.Two

3.Three

4.many

Posted Date:-2022-02-03 10:08:50


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

Posted Date:-2022-02-03 10:26:05


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

Posted Date:-2022-02-03 10:20:11


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

Posted Date:-2022-02-03 10:36:41


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.

Posted Date:-2022-02-03 10:35:47


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

Posted Date:-2022-02-03 10:39:50


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

Posted Date:-2022-02-03 10:36:11


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

Posted Date:-2022-02-03 10:04:41


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

Posted Date:-2022-02-03 10:04:24


Question:
Does web service have a state?

1.Yes

2.no

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 10:06:53


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

Posted Date:-2022-02-03 10:14:25


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

Posted Date:-2022-02-03 10:19:55


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

Posted Date:-2022-02-03 10:33:56


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

Posted Date:-2022-02-03 10:32:01


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

Posted Date:-2022-02-03 10:04:04


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

Posted Date:-2022-02-03 10:28:04


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

Posted Date:-2022-02-03 10:38:53


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

Posted Date:-2022-02-03 10:30:58


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

Posted Date:-2022-02-03 10:29:56


Question:
Is it possible to Override Private Virtual methods.

1.Yes

2.no

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 10:06:09


Question:
Is it Possible to Serialize HashTable with XMLSerializer?

1.Yes

2.no

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 10:18:12


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

Posted Date:-2022-02-03 10:27:28


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

Posted Date:-2022-02-03 10:39:25


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

Posted Date:-2022-02-03 10:17:17


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

Posted Date:-2022-02-03 10:33:25


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

1.128mb

2.384mb

3.3.256mb

4.512mb

Posted Date:-2022-02-03 10:06:36


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

Posted Date:-2022-02-03 10:05:07


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

1.SQLLCientAttribute

2. SQLPermission

3. SQLPermissionClient

4.SQLClientPermission

Posted Date:-2022-02-03 10:19:14


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

Posted Date:-2022-02-03 10:05:50


Question:
Web Controls Supports CSS

1.True

2.False

3.all of the above

4.None of the mentioned

Posted Date:-2022-02-03 10:09:29


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

Posted Date:-2022-02-03 10:13:30


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

Posted Date:-2022-02-03 10:18:48


Question:
What is the default authentication mode for IIS?

1.Windows

2.Anonymous

3.Basic Authentication

4.None

Posted Date:-2022-02-03 10:16:39


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

Posted Date:-2022-02-03 10:17:47


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

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


Question:
What is the maximum size of query string?

1.384 bytes

2. 128 bytes

3.255 bytes

4. 512 bytes

Posted Date:-2022-02-03 10:07:16


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

1.HTTP

2.SMTP

3. TCP

4.SOAP

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


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

Posted Date:-2022-02-03 10:08:01


Question:
Which are the components of a strong name?

1.Name of the assembly

2.version number

3.Culture identity

4.All of these

Posted Date:-2022-02-03 10:05:31


Question:
Which Namespace is used for event log support?

1.System.Reflection;

2.System.Diagnostics

3. System.Collections

4. System.Web.UI

Posted Date:-2022-02-03 10:07:37


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

Posted Date:-2022-02-03 10:31:37


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

1..asmx

2..aspx

3. .ascx

4..resx

Posted Date:-2022-02-03 10:15:16


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

1.ExecuteReader

2.ExecuteScalar

3.ExecuteStream

4.Open

Posted Date:-2022-02-03 10:11:11


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

Posted Date:-2022-02-03 10:16:16


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.

Posted Date:-2022-02-03 10:35:20


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

Posted Date:-2022-02-03 10:27:00


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

Posted Date:-2022-02-03 10:26:34


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

Posted Date:-2022-02-03 10:34:33


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!