Sei sulla pagina 1di 19

1) On which of the operating system below ASP.NET can run?

a) Windows XP Professional
b) Windows 2000
c) Both A) and B)-(ANS)
d) None of the Above
2) 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
a) Such a situation cannot happen at all
b) The customer must be having technology that run ASP.
c) The customer can run on any platform. (ANS)
d) None of the Above
3) Which of the following denote the web control associated with Table control
function of ASP.NET?
a) DataList
b) ListBox
c) TableRow (ANS)
d) All the Above
4) ASP.NET separates the HTML output from program logic using a feature named as
a) Exception
b) Code-behind (ANS)
c) Code-front
d) None of the above
5) If a developer of ASP.NET defines style information in a common location. Then
that location is called as
a) Master Page
b) Theme (ANS)
c) Customization
d) None of the Above
6) 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
a) WebPartManager
b) ProxyWebPartManager (ANS)
c) System.Activator
d) None of the Above

7) The feature in ASP.NET 2.0 that is used to fire a normal postback to a different
page in the application is called
a) Theme
b) Cross Page Posting (ANS)
c) Code-front
d) None of the above
8) In ASP.NET if one uses Windows authentication the current request attaches an
object called as
a) Serialization
b) WindowsPrincipal (ANS)
c) WindowDatset
d) None of the Above
9) The GridView control in ASP.NET has which of the following features
a) Automatic data binding
b) Automatic paging
c) Both A) and B) (ANS)
d) None of the above
10) If one uses ASP.NET configuration system to restrict access which of the
following is TRUE?
a) The access is restricted only to ASP.NET files (ANS)
b)The access is restricted only to static files and non-ASP.NET resources.
c) Both A) and B)
d) None of the Above
11) Which of the following denote page code model in ASP.NET?
a) single-file
b) code-behind
c) Both A) and B) (ANS)
d) None of the above
12) Which of the following denote New Data-bound Controls used with ASP.NET
a) GridView
b) FormView
c) SqlDataSource
d) Both A) and B)
e) All the Above (ANS)

13) A developer wanted to achieve graphics in his display using ASP.NET. Which of
the following web controls are available in ASP.NET to achieve the above?
a) Both A) and B)
b) LinkButton
c) AdRotator (ANS)
d) None of the Above
14) Forms based authentication is otherwise called in ASP.NET as Cookie
Authentication because Forms authentication uses cookies to allow applications to
track users throughout their visit.
a) Windows Authentication
b) Passport Authentication
c) Cookie Authentication (ANS)
d) None of the Above
15) Which of the following is true about session in ASP.NET?
a) Programmers has to take care of delete sessions after configurable timeout
interval
b) ASP.NET automatically delete sessions after configurable timeout interval (ANS)
c) The default time interval is 5 minutes
d) None of the Above
16) In ASP.NET what does the following return
<%
Response.Write(System.Environment.WorkingSet.ToString())
%>
a) None of the Above
b) Gives Error
c) Return Null value
d) Gives the memory working set (ANS)
17) In ASP.NET if one wants to maintain session then which of the following is used?
a) In-process storage
b) Microsoft SQL Server
c) Session State Service
d) All the Above (ANS)
18) I have an ASP.NET application. I have a page loaded from server memory. At this
instance which of the following methods gets fired

a) Unload( )
b) Load()(ANS)
c) PreRender( )
d) None of the Above
19) Give one word: What model does ASP.NET request processing is based on
a) Bottom-up
b) Top-down
c) Waterfall
d) Pipeline
20) If in an ASP.NET application one want to create http handlers which of the
interface is used
a) None of the above
b) pipeline
c) Handler
d) IHttpHandlerFactory (ANS)
21) To set page title dynamically in ASP.NET which of the following is used?
a) None of the above
b) < sheet > section
c) < tail > section
d) < head > section (ANS)
22) In ASP.NET application the Global.asax file lie in which directory
a) Application
b) System
c) ROOT (ANS)
d) None of the Above
23) Which of the following can be used to debug .NET application?
a) Systems.Diagnostics classes
b) Runtime Debugger
c) Visual Studio .NET
d) All the Above (ANS)

24) Which of the following is used to write error message in event Log File?
a) System.Data
b) System.EnterpriseServices
c) System.Diagnostics (ANS)
d) None of the Above
25) 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
a) Avoid page to be cached (ANS)
b) Clears the buffer area
c) The session expires
d) None of the Above
26) Which of the following denote value that can be taken by Cache-Control of
ASP.NET?
a) Public
b) Private
c) no-cache
d) All the Above (ANS)
27) In ASP.NET page framework an automatic way to associate page events and
methods is
a) AutoEventWireup attribute of the Page directive is set to true
b) AutoEventWireup attribute of the Page directive is set to False
c) It is not possible to set automatically page events and methods
d) None of the Above
28) In ASP.NET if one wants to set the focus on a particular control
a) Call SETFOCUS

b) Call SETCONTROL
c) Call FOCUS method (ANS)
d) None of the above
29) The control used in ASP.NET to display information from data set but with better
formatting and editing behavior is
a) Panel
b) Button
c) DataList (ANS)
d) None of the Above
30) Which of the following languages can be used to write server side scripting in
ASP.NET?
a) C# (ANS)
b) C
c) Visual Basic
31) The Following are the minimum requirement to run Asp.net pages
a) Java Virtual Machine
b) Common Language Runtime (ANS)
c) Windows explorer
32) When a .aspx page is requested from the web server, the out put will be
rendered to browser in following format.
a) HTML (ANS)
b) XML
c) WML
33) What executable unit gets created when we build an ASP.Net application?
a) . DLL (ANS)

b) . EXE
c) . COM
34) The best way to delimit ASP.Net code from HTML code in your pages is by using
- tags.
a) < Body >
b) < Head >
c) < Script > (ANS)
35) The Asp.net server control, which provides an alternative way of displaying text
on web page, is
a) < asp:label > (ANS)
b) < asp:listitem >
c) < asp:button >
36) asp:dropdownlist> tag replaces which of the HTML tags
a) < Option >
b) < Select > (ANS)
c) < List >
37) < asp : listitem > tag replaces which of the following HTML tags
a) < Option > (ANS)
b) < UL >
c) < List >
38) The first event to be triggered in an aspx page is
a) Page_Load()
b) Page_Init()(ANS)
c) Page_click()
39) Postback occurs in which of the following forms
a) Winforms

b) HTMLForms
c) Webforms (ANS)
40) what namespace does the Web page belong in the .NET Framework class
hierarchy?
a) System.web.UI.Page (ANS)
b) System.Windows.Page
c) System.Web.page
41) Which method do you invoke on the Data Adapter control to load your
generated dataset
a) Fill ( ) (ANS)
b) ExecuteQuery ( )
c) Read ( )
42) How many configuration files can an ASP.NET projects have?
a) More Than One
b) One (ANS)
c) None
43) How do you register a user control?
a) Add Tag prefix, Tag name
b) Add Source, Tag prefix
c) Add Src, Tagprefix, Tagname (ANS)
44) Which of the following is true ?
a) User controls are displayed correctly in the Visual Studio .NET Designer
b) Custom controls are displayed correctly in VS.Net Designer (ANS)
c) User and Custom controls are displayed correctly in the Visual Studio .NET
Designer

45) Can a dll run as stand alone application ?


a) No (ANS)
b) Yes
c) Sometimes we can make it by introducing some code
46) To add a custom control to a Web form we have to register with
a) TagPrefix
b) Name space of the dll that is referenced
c) Assemblyname
d) All of the above (ANS)
47) Custom Controls are derived from which of the classes
a) System.Web.UI.Customcontrols.Webcontrol
b) System.Web.UI.Customcontrol
c) System.Web.UI.Webcontrol (ANS)
48) A web application running on multiple servers is called as
a) Webfarm (ANS)
b) WebForm
c) Website
49) What is the transport protocol used to call a webservice
a) HTTP
b) SOAP (ANS)
c) TCP
d) SMTP
50) How ASP.Net Different from ASP
a) Scripting is separated from the HTML, Code is interpreted seperately

b) Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be
executed on server (ANS)
c) Code is separated from the HTML and interpreted Code is interpreted separately
51) Whats the difference between Response.Write() andResponse.Output.Write()?
a) Response.Output.Write() allows you to flush output
b) Response.Output.Write() allows you to buffer output
c) Response.Output.Write() allows you to write formatted output (ANS)
d) Response.Output.Write() allows you to stream output
52) Why is Global.asax is used
a) Implement application and session level events (ANS)
b) Declare Global variables
c) No use
53) There can be more than 1 machine.config file in a system
a) True (ANS)
b) False
54) What is the extension of a web user control file ?
a) .Asmx
b) . Ascx (ANS)
c) .Aspx
55) What is the default session out time
a) 20 Sec
b) 20 Min (ANS)
c) 1 hr
56) Which of the following is true ?
a) IsPostBack is a method of System.UI.Web.Page class
b) IsPostBack is a method of System.Web.UI.Page class

c) IsPostBack is a readonly property of System.Web.UI.Page class (ANS)


57) It is possible to set Maximum length for a text box through code
a) True (ANS)
b) False
58) The number of forms that can be added to a aspx page is
a) 2
b) 3
c) 1 (ANS)
d) More than 3
59) How do you manage states in asp.net application
a) Session Objects
b) application Objects
c) Viewstate
d) Cookies
e) All of the above (ANS)
60) The interface used by ASP.Net to create Unique Ids?
a) AppDomainsetup
b) System.UI.Naming.Container (ANS)
c) IAsyncResult
d) customFormatter
61) Which property of the session object is used to set the local identifier ?
a) SessionId
b) LCID (ANS)
c) Item
d) Key
62) Select the caching type supported by ASP.Net

a) Output Caching
b) DataCaching
c) Both a & b (ANS)
d) None of the above
63) Where is the default Session data is stored in ASP.Net
a) InProcess (ANS)
b) StateServer
c) SQL Server
d) All of the above
64) How do you disable client side validation ?
a) Set the language property to C#
b) Set the Runat property to server
c) Set the ClientTarget property to Downlevel (ANS)
d) Set the inherits property to codeb
65) Select the validation control used for PatternMatching
a) FieldValidator
b) RegularExpressionValidator (ANS)
c) RangeValidator
d) PatternValidator
66) How do you trace the application_End event on runtime?
a) By Debugging
b) By Tracing
c) Can not be done (ANS)
67) Who can access Session state variables
a) All Users of an application
b) A Single session (ANS)
c) All users within a single tunnel
68) Select the type Processing model that asp.net simulate
a) Event-driven (ANS)
b) Static

c) Linear
d) TopDown
69) Does the EnableViewState allows the page to save the users input on a form
a) Yes (ANS)
b) No
70) Web Controls Supports CSS
a) True (ANS)
b) False
71) Session Object classes are defined in which of the following namespace?
a) System.Web.UI
b) System.Web.SessionState
c) System.Web
72) Which DLL translate XML to SQL in IIS
a) SQLISAPI.dll (ANS)
b) SQLXML.dll
c) LISXML.dll
d) SQLIIS.dll
73) What is the default authentication mode for IIS
a) Windows
b) Anonymous (ANS)
c) Basic Authentication
d) None
74) Which of the following is not a valid state management tool?
a) Querystate (ANS)
b) Hidden Form Field

c) Application State
d) Cookies
75) What is the maximum number of cookies that can be allowed to a web site
a) 1
b) 10
c) 20
d) 30
e) More than 30
76) Select the control which does not have any visible interface
a) Datalist
b) DropdownList
c) Repeater (ANS)
d) Datagrid
77) How do you explicitly kill a users session ?
a) Session.Close ( )
b) Session.Discard ( )
c) Session.Abandon (ANS)
d) Session.End
78) Why do we use XMLSerializer class
a) Remoting
b) WebServices (ANS)
c) Xml documentary Files
79) What does Response.End will do?
a) It will stop the server process (ANS)

b) It will stop the client process


c) None of the above
80) Which control supports paging
a) Repeater
b) Datagrid (ANS)
c) Both
d) None
81) Where do you store the information about the user locale
a) System.user
b) System.web
c) System.Drawing
d) System.Web.UI.Page.Culture (ANS)
82) What is the purpose of code behind ?
a) To separate different sections of a page in to different files
b) To merge HTML layout and code in to One file
c) To separate HTML Layout and code to different file (ANS)
d) To ignore HTML usage
83) What is a satallite assembly ?
a) Any DLL file used by an EXE file.
b) An Assembly containing localized resources for another assembly (ANS)
c) None of the above
84) Which of the following is not a member of Response Object?
a) Clear
b) Write

c) Execute (ANS)
d) Flush
85) Which of the following is not a member of ADODBCommand object
a) ExecuteReader
b) ExecuteScalar
c) ExecuteStream
d) Open (ANS)
e) CommandText
86) Which method do you invoke on the DataAdapter control to load your generated
dataset with data?
a) Load
b) Fill (ANS)
c) GetAll
d) None
87) How to open more than one datareader at a time
a) Use different datareader variable
b) Use different datareader and connection variable (ANS)
c) Can not be done
88) What is the advantage of Disconnected mode of ADO.Net in ASP.Net
a) Automatically dump data at client PC
b) Not necessary to connect with server
c) user data can update and retrieve in dataset and when connection connected,
update values with server (ANS)
d) All of the above
89) Which objects is used to create foreign key between tables?
a) DataRelation (ANS)
b) DataRelationship

c) DataConstraint
d) Datakey
90) Which one of the following namespaces contains the definition for
IdbConnection
a) System.Data.Interfaces
b) System.Data.Common
c) System.Data (ANS)
d) System.Data.Connection
91) Select the Interface which provides Fast, connected forward-only access to data
a) IdataRecord
b) Idatabase
c) IdataReader (ANS)
d) Irecorder
92) How do we Delete, Update, Select data in a Dataset
a) Using SQLDataAdapter (ANS)
b) Using SQLDataReader
c) Using SQLCommand
d) None
93) Which of the following is not a member of ConnectionObject
a) Execute (ANS)
b) EndTransaction
c) BeginTransaction
d) Open
94) Is it Possible to Serialize HashTable with XMLSerializer
a) Yes (ANS)
b) No

95) What is the Full Form of WSDL


a) Web System Description Language
b) Web Services Detail Language
c) Web Service Description Language (ANS)
d) None
96) What is the difference between Server.Transfer & Response.Redirect
a) No Difference
b) Server.Transfer needs a roundtrip, Response.Redirect does not
c) Response.Redirect needs roundtrip, Server.Transfer does not (ANS)
d) Server.Transfer can transfer user between 2 applicaions
97) Which Language can Support SOAP
a) VB
b) JAVA
c) COBOL
d) All of the above (ANS)
98) What is the size of the session ID
a) 32 bit long string
b) 32 bit long double
c) 32 bit long character
d) 32 bit long integer (ANS)
99) Which of the following extension does a webservice file will have
a) .Asmx (ANS)
b) .Aspx
c) .Ascx
d) .Resx

100) What is a strong name?


a) Public Key
b) Private Key
c) Combination Of both Public,Private key and digital signature (ANS)

Potrebbero piacerti anche