ASP.NET QUESTIONS
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


No comments:
Post a Comment