DISHA NIRDESHAN

Enlightens your career

Thursday, November 3, 2011

ASP. Net Obective type Questions

1. Choose the form in which Postback occurs.

           

a          HTMLForms

b          Webforms

c          Winforms

           

2          Web.config file is used...

           

a          Configures the time that the server-side codebehind module is called

b          To store the global information and variable definitions for the application

c          To configure the web server

d          To configure the web browser

           

3          Which of the following object is not an ASP component?

           

a          LinkCounter

b          Counter

c          AdRotator

d          File Access

           

           

4          The first event triggers in an aspx page is.

           

a          Page_Init()

b          Page_Load()

c          Page_click()

 

 

           

5          Difference between Response.Write() andResponse.Output.Write().

           

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

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

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

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

           

6          Which of the following method must be overridden in a custom control?

           

a          The Paint() method

b          The Control_Build() method

c          The default constructor

d          The Render() method

           

7          How do we create a FileSystemObject?

           

a          Server.CreateObject("Scripting.FileSystemObject")

b          Create("FileSystemObject")

c          Create Object:"Scripting.FileSystemObject"

d          Server.CreateObject("FileSystemObject")

           

8          Which of the following tool is used to manage the GAC?

           

a          RegSvr.exe

b          GacUtil.exe

c          GacSvr32.exe

d          GacMgr.exe

           

 

9          . What class does the ASP.NET Web Form class inherit from by default?

           

a          System.Web.UI.Page

b          System.Web.UI.Form

c          System.Web.GUI.Page

d          System.Web.Form

           

10        We can manage states in asp.net application using

           

a          Session Objects

b          Application Objects

c          Viewstate

d          All of the above

           

11        Attribute must be set on a validator control for the validation to work.

           

a          ControlToValidate

b          ControlToBind

c          ValidateControl

d          Validate

           

12        Caching type supported by ASP.Net

           

a          Output Caching

b          DataCaching

c          a and b

d          none of the above

           

 

13        What is used to validate complex string patterns like an e-mail address?

           

a          Extended expressions

b          Basic expressions

c          Regular expressions

d          Irregular expressions

           

14        File extension used for ASP.NET files.

           

a          .Web

b          .ASP

c          .ASPX

d          None of the above

           

15        An alternative way of displaying text on web page using

           

a          asp:label

b          asp:listitem

c          asp:button

           

16        Why is Global.asax is used?

           

a          Declare Global variables

b          Implement application and session level events

c          No use

           

17        Which of the following is not a member of ADODBCommand object?

           

a          ExecuteScalar

b          ExecuteStream

c          Open

e          ExecuteReader

           

18        Which DLL translate XML to SQL in IIS?

           

a          SQLISAPI.dll

b          SQLXML.dll

c          LISXML.dll

d          SQLIIS.dll

           

19        Default Session data is stored in ASP.Net.

           

a          StateServer

b          Session Object

c          InProcess

d          all of the above

           

20        Default scripting language in ASP.

           

a          EcmaScript

b          VBScript

c          PERL

d          JavaScript

           

21        How do you get information from a form that is submitted using the "post" method?

           

a          Request.QueryString

b          Request.Form

c          Response.write

d          Response.writeln

           

22        . Which object can help you maintain data across users?

           

a          Application object

b          Session object

c          Response object

d          Server object

           

           

23        Which of the following ASP.NET object encapsulates the state of the client?

           

a          Session object

b          Application object

c          Response object

d          Server object

           

24        Which of the following object is used along with application object in order to ensure that only one process accesses a variable at a time?

           

a          Synchronize

b          Synchronize()

c          ThreadLock

d          Lock()

           

           

 

 

 

25        Which of the following control is used to validate that two fields are equal?

           

a          RegularExpressionValidator

b          CompareValidator

c          equals() method

d          RequiredFieldValidator

           

26        Mode of storing ASP.NET session

           

a          InProc

b          StateServer

c          SQL Server

d          All of the above

           

27        Which of the following is not the way to maintain state?

           

a          View state

b          Cookies

c          Hidden fields

d          Request object

           

28        You can have only one Global.asax file per project.

           

a          Yes

b          No

           

29        ______________ element in the web.config file to run code using the permissions of a specific user

           

a          < credential> element

b          < authentication> element

c          < authorization> element

d          < identity> element

           

           

30        __________________ is a special subfolder within the windows folder that stores the shared .NET component.

           

a          /bin

b          GAC

c          Root

           

31        Which of the following is the performance attributes of processModel?

           

a          requestQueue limit

b          maxWorkerThreads

c          maxIdThreads

d          All

           

32        Which of the following is faster and consume lesser memory?

           

a          SQLDataReader

b          Data Set

           

33        Which of the following is the way to monitor the web application?

           

a          MMC Event viewers

b          Performance logs

c          Alerts Snap-ins

d          ALL

           

34        The ________________ property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.

           

a          CurrentUICulture

b          CurrentCulture

           

35        Where do we include the user lists for windows authentication?

           

a          < Credential>

b          < authorization>

c          < identity>

d          < authentiation>

           

36        Where do we include the user lists for Form authentication?

           

a          < credential>

b          < authorization>

c          < Identity>

d          < authentication>

           

37        . Which of the following authentication is best suited for a corporate network?

           

a          Windows

b          Form

c          User

d          All

           

38        What attributes do you use to hide a public .Net class from COM?

           

a          DLLImport Attributes

b          ComVisible attributes

c          COM Interop

d          All

           

39        By default, code written with the Debug class is stripped out of release builds.

           

a          Yes

b          No

           

40        ___________________ tests make sure that new code does not break existing code.

           

a          Regression tests

b          Integration tests

c          Unit tests

d          Load test

           

41        Which of the following is used to cache multiple responses for a single web form based on HTTP POST parameter or query string?

           

a          VaryByParams

b          VaryByHeaders

c          SetCacheability

d          SetVaryByCustom



0 comments :