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

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

1.One

2.Two

3.None

4.many


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


Question:
 Explain the significance of Server .MapPath

1. Returns the Virtual Path of the web folder

2. Maps the specified virtual path to Physical path

3. Returns the physical file path that corresponds to virtual specified path

4.All the above


Question:
 In your ASP.NET web application you want to display a list of clients on a Web page. The client list displays 10 clients at a time, and you require the ability to edit the clients. Which Web control is the best choice for this scenario?

1. The DetailsView control

2. The Table control

3. The GridView control

4.The FormView control


Question:
 Select the control which does not have any visible interface.

1. Datalist

2. DropdownList

3.Repeater

4.Datagrid


Question:
 Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below:

1. One must override the method ReceiveMessage

2.One must override the method InitializeMethod

3.Both A. and B.

4. One must override the method ProcessMessage


Question:
 The first event to be triggered in an aspx page is.

1.Page_Load()

2.Page_Init()

3.Page_click()

4.None of the mentioned


Question:
 To add a custom control to a Web form we have to register with.

1. TagPrefix

2.Name space of the dll that is referenced

3. Assemblyname

4. All of the above


Question:
 What is the maximum number of cookies that can be allowed to a web site?

1. 1

2. 10

3.20

4.More than 30


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

1.System.web.UI.Page

2.System.Windows.Page

3. System.Web.page

4.None of the mentioned


Question:
 Which of the following can be used to add alternating color scheme in a Repeater control?

1. AlternatingItemTemplate

2. DataSource

3. ColorValidator

4. None of the above


Question:
 Which of the following denote the property in every validation control?

1.ControlToValidate property

2. Text property

3. Both A. and B.

4. None of the above


Question:
 Which of the following is true?

1.IsPostBack is a method of System.UI.Web.Page class

2.IsPostBack is a method of System.Web.UI.Page class

3. IsPostBack is a readonly property of System.Web.UI.Page class

4.None of the above.


Question:
Common type system is built into which of the following:

1.CLR

2.RCT

3.RCW

4.GacMgr.exe


Question:
Custom Controls are derived from which of the classes

1.System.Web.UI.Webcontrol

2. System.Web.UI.Customcontrol

3. System.Web.UI.Customcontrols.Webcontrol

4.None of the mentioned


Question:
Does the EnableViewState allows the page to save the users input on a form?

1. Yes

2. no

3.all of the above

4.None of the mentioned


Question:
For your ASP.NET web application your graphics designer created elaborate images that show the product lines of your company. Some of graphics of the product line are rectangular, circular, and others are having complex shapes. You need to use these images as a menu on your Web site. What is the best way of incorporating these images into your Web site?

1. Use ImageButton and use the x- and y-coordinates that are returned when the user clicks to figure out what product line the user clicked.

2. Use the Table, TableRow, and TableCell controls, break the image into pieces that are displayed in the cells, and use the TableCell control’s Click event to identify the product line that was click

3. Use the MultiView control and break up the image into pieces that can be displayed in each View control for each product line. Use the Click event of the View to identify the product line that was cl

4. Use an ImageMap control and define hot spot areas for each of the product lines. Use the PostBackValue to identify the product line that was clicked.


Question:
How ASP.Net Different from classic ASP?

1.Scripting is separated from the HTML, Code is interpreted seperately

2.Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

3. Code is separated from the HTML and interpreted Code is interpreted separately

4.All of the Mentioned


Question:
How do you explicitly kill a user session?

1. Session.Close( )

2.Session.Discard( )

3. Session.Abandon

4.Session.End


Question:
How do you manage states in asp.net application

1. Session Objects

2. Application Objects

3. Viewstate

4. All of the above


Question:
How do you register a user control?

1.Add Tag prefix, Tag name

2.Add Source, Tag prefix

3. Add Src, Tagprefix, Tagname

4.None of the mentioned


Question:
In ASP.NET the sessions can be dumped by using

1.Session.Dump

2. Session.Abandon

3.Session.Exit

4.none of the above


Question:
Postback occurs in which of the following forms.

1. Winforms

2. HTMLForms

3. Webforms

4.None of the mentioned


Question:
Select the caching type supported by ASP.Net

1.Output Caching

2. DataCaching

3.a and b

4.none of the above


Question:
Select the type Processing model that asp.net simulate

1. Event-driven

2.Static

3. Linear

4.Topdown


Question:
Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ________ ?

1. Serialization

2. Threading

3. RCW

4.AppDomain


Question:
The actual work process of ASP.NET is taken care by _______?

1. inetinfo.exe

2.aspnet_isapi.dll

3. aspnet_wp.exe

4. None of the above


Question:
The Asp.net server control, which provides an alternative way of displaying text on web page, is

1. < asp:label >

2. < asp:listitem >

3. < asp:button >

4.None of the mentioned


Question:
The host for ASP.NET Core web application is configured in _________ file?

1. Program.cs

2.Startup.cs

3.Middleware

4.none of the above


Question:
The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is ....................

1. System.EnterpriseServices

2.System.Security

3. System.Diagnostics

4.System.Data


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

1.1

2.2

3.3

4. More than 3


Question:
The technique that allow code to make function calls to .NET applications on other processes and on other machines is

1. .NET Threading

2..NET Remoting

3..NET RMT

4. None of the above


Question:
The type of code found in Code-Behind class is ________ ?

1. Server-side code

2. Client-side code

3.Both A. and B.

4.none of the above


Question:
There can be more than 1 machine.config file in a system

1. True

2.False

3.SOAP

4.None of the mentioned


Question:
What is the extension of a web user control file?

1..Asmx

2..Ascx

3. .Aspx

4.None of the mentioned


Question:
What tags one need to add within the asp:datagrid tags to bind columns manually?

1.Set AutoGenerateColumns Property to false on the datagrid tag

2. Set AutoGenerateColumns Property to true on the datagrid tag

3.It is not possible to do the operation

4.Set AutomaunalColumns Property to true on the datagrid tag


Question:
What's the difference between Response.Write() andResponse.Output.Write()?

1.Response.Output.Write() allows you to flush output

2.Response.Output.Write() allows you to buffer output

3.Response.Output.Write() allows you to write formatted output

4. Response.Output.Write() allows you to stream output


Question:
When an .aspx page is requested from the web server, the out put will be rendered to browser in following format.

1.HTML

2.XML

3. WML

4.jsp


Question:
Where is the default Session data is stored in ASP.Net?

1. InProcess

2.StateServer

3.Session Object

4.all of the above


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

1. Fill( )

2. ExecuteQuery( )

3.Read( )

4.None of the mentioned


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

1.Load ( )

2. Fill( )

3.DataList

4.DataBind


Question:
Which of the following allow writing formatted output?

1. Response.Write()

2.Response.Output.Write()

3.Both A. and B.

4.none of the above


Question:
Which of the following is TRUE about Windows Authentication in ASP.NET?

1. Automatically determines role membership

2.Role membership determined only by user programming

3.ASP.NET does not support Windows Authentication

4. None of the above


Question:
Which of the following is true?

1.User controls are displayed correctly in the Visual Studio .NET Designer

2.Custom controls are displayed correctly in VS.Net Designer

3.User and Custom controls are displayed correctly in the Visual Studio .NET Designer.

4.None of the above.


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

1.C-sharp

2. VB

3. C++

4. A and B


Question:
Which of the following method is used to obtain details about information types of assembly?

1. GetTypes

2. GetType

3. Both A. and B.

4.none of the above


Question:
Which one of the following namespaces contains the definition for IdbConnection?

1.System.Data.Interfaces

2.System.Data.Common

3. System.Data

4. System.Data.Connection


Question:
Which property of the session object is used to set the local identifier?

1. SessionId

2.LCID

3. Item

4. Key


Question:
You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?

1. Session

2.Application

3. Response.Cookies

4.Response.ViewState


Question:
_______ element in the web.config file to run code using the permissions of a specific user

1. < credential> element

2. < authentication> element

3. < authorization> element

4. < identity> element


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!