Tải bản đầy đủ (.doc) (43 trang)

Question Bank ASP .Net and Webforms

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (375.02 KB, 43 trang )

Question Bank

ASP .Net and Webforms
1.
The ______________ is used to break down the data into packets that
are transferred over the network
[1.0]
a) SMTP Protocol c) HTTP Protocol
b) Internet Protocol d) FTP Protocol
2.
A _____________ is a set of rules that two or more computers use to
share data with each other
[0.5]
a) Prototype c) Protocol
b) Standard d) Rules
3.
A client machine is connected to a _________________ within an
organization
[1.0]
a) Internet c) SQL Server
b) Firewall d) Proxy Server
4.
A _____________ processes scripts and sends the resulting HTML
page to the client browser that requested it
[1.0]
a) Web server c) Web browser
b) SQL Server d) Connection
5.
_______________ is a client / server protocol that is used to transfer
web pages
[0.5]


a) HTTP c) SMTP
b) FTP d) NNTP
6.
The client sends a request to the web server [0.5]
a) True b) False
7. The web server makes use of _____________, the
________________ and the ________________ to provide the
communication between the network interface and the HTTP service
[1.5]
a) Windows Sockets c) Transport Layer
b) Internet Protocol (IP) d) Application Layer
8. A ___________ is a software element that is used to pass network
traffic between networks within an organization
[1.0]
a) Proxy server c) SQL Server
b) Web Server d) Exchange Server
9. The identity and validity of the web server and web browser can be
ensured through the use of digital certificates that are maintained by
the certificate server.
[0.5]
a) True b) False
10. ______________ authentication ensures that only authorized users
are allowed to access a web site or an application.
[1.0]
a) Client Authentication c) Client and server
authentication
b) Server Authentication d) None of the Above
11. Secure Socket Layers (SSL) can not be used to ensure data integrity. [0.5]
a) True b) False
12. An _____________ is an area on a web site available only to a set of

registered visitors
[1.0]
a) Extranet c) Intranet
b) Internet d) None of the Above
13. There are _______ phases of web application development [0.5]
a) 4 c) 5
b) 6 d) 7
14. ___________ is the stage where you plan the functionality of the
application.
[1.0]
a) Planning the Web
application
c) Designing the Web
application
b) Implementing the Web
application
d) Deploying the Web
application
15. __________ is the phase where you create the prototype of the
application
[1.0]
a) Planning the Web application c) Designing the Web
application
b) Implementing the Web
application
d) Deploying the Web
application
16. Dynamic HTML pages can be created through ___________ [1.5]
a) Server & Client based
scripts

c) Client based script only
b) Server based scripts only d) Not possible
17. ______________ is a method that can be used to create dynamic
HTML pages and provide user interaction.
[1.5]
a) Scripting c) Coding
b) De-coding d) Encoding
18. What are the benefits of Client-side scripting? [1.5]
a) Provide user interaction c) Validate data
b) Integration d) Provide database interaction
19. ___________ is an object-based scripting language for developing
client-based Internet applications.
[1.0]
a) JavaScript c) JScript
b) VBScript d) Java
20. In client-side scripting, the scripts are embedded in the
_____________ document.
[1.0]
a) JavaScript c) HTML
b) CGI d) VBScript
21. JavaScript is a scripting language that was developed by __________
and ____________.
[1.0]
a) Microsoft c) Sun Microsystems
b) Netscape d) Oracle
22. JavaScript code is typically embedded into an HTML document using
the SCRIPT tag.
[0.5]
a) True b) False
23. <! - -statements //- -> are comment tags. [0.5]

a)
True
b) False
24 The first beta version of ASP code was named _______________. [1.0]
a) Manali c) Denali
b) Depali d) Nepali
25 Identify the correct statement(s) from the following:
1. VBScript and JavaScript are not the only two scripting
languages available in ASP.
2. ASP pages are interpreted. This makes their execution slower.
3. ASP pages are very untidy. They are a spaghetti-like mixture of
code, HTML and text.
[1.5]
a) 1, 3 c) 1 only
b) 2, 3 d) 3 only
26 Identify the correct statement(s) from the following:
 ASP.NET supports strongly typed languages like VB, C#, and
much more.
 ASP.NET pages get interpreted instead of being compiled.
 ASP.NET pages are tidier than ASP pages.
[1.5]
a) 1, 3 c) 1 Only
b) 2, 3 d) 3 Only
27. _______________ is a file that contains settings for configuring your
application.
[1.0]
a) Global.asax c) Global.asp
b) Global.net d) Global.asa
28. A web service can be described as a function that can be deployed
over the web.

[0.5]
a) True b) False
29.
In the case of a Web-enabled application, firstly the Internet is a
_____________ network. Secondly, Web pages are _________________.
[1.0]
a) connectionless c) connected
b) state d) stateless
30. A Web-enabled application can function in isolation. It doesn’t require
several network and application components to deliver the desired
results to the user.
[1.0]
a) True b) False
31. The __________ directive is used to specify attributes that affect the
code in the .ASPX page.
[1.0]
a) @ Paper c) @ Page
b) @ Script d) @ Tag
32. The ____________ section is where most of the code for providing the
required functionality is written.
[1.0]
a) <script> c) <body>
b) <form> d) <p>
33. You can’t use server controls to create the user interface for the web
application.
[0.5]
a) True b) False
34. Which are the two types of server controls? [1.5]
a) HTML Controls c) Web Controls
b) Internet Controls d) Script Controls

35. The _________ attribute of the control allows a developer to access
the control programmatically.
[1.0]
a) name c) width
b) id d) style
36. The ______________ control is a hidden control that is added to the
form when the form is submitted to the server.
[1.0]
a) _VIEWSTATE c) VIEWSTATE
b) VIEWSTATE_ d) _VIEWSTATE_
37. Every time an .ASPX page is loaded, the Page_Load event is fired. [0.5]
a) True b) False
38. It is possible to check whether an. ASPX page is posted back to the
server with the help of the _____________ property of the page.
[1.0]
a) PostBack c) IsPostback
b) AutoPostBack d) None of the Above
39. Identify the correct sequence of processes that occur when an .ASPX
page is requested from a browser:
A HTTP request is sent to the IIS.
The server code is loaded into memory and executed on the web
server.
A request for an .ASPX page is made from the browser
[2.0]
The output of the server code is sent back to the browser by the IIS.
On the server-end the .ASPX page is loaded again; however, the
hidden fields values are read and appropriate event handlers are
called.
The output is sent back to the browser in the form of HTML.
Suppose the user performs an action on a control that has a server

side event handler or causes any server side execution to occur, the
page is posted back along with a hidden control that contain the
information about what actions have been performed by the user.
a) 1, 2, 3, 4, 5, 6, 7 c) 4, 5, 6, 7, 3, 2, 1
b) 2, 3, 1, 4, 6, 7, 5 d) 6, 5, 4, 3, 7, 2, 1
40. The __________ object is used to share application-level information. [1.0]
a) Application c) Response
b) Request d) Session
41. __________ object is used to store information for a particular user
between page calls
[1.0]
a) Application c) Response
b) Request d) Session
42. An ASP.NET application is a collection of text files that are stored in a
directory and its subdirectories, on the Web server.
[0.5]
a) True b) False
43. The pages can be physically stored in any directory on the web server.
This directory needs to be a subdirectory of wwwroot. However, this
directory has to be made a virtual directory.
[0.5]
a) True b) False
44. The web server manages the virtual directory settings, permissions
and user access.
[0.5]
a) True b) False
45. If a directory has write and execute permissions, a user cannot
upload .aspx files and execute them on your Web server.
[0.5]
a) True b) False

46. The client browser and the Web server communicate using the
___________ protocol.
[1.0]
a) FTP c) HTTP
b) SMTP d) NNTP
47. The communication between the client and the server take place
through a series of_______________.
[1.0]
a) Requests Only c) Responses Only
b) requests-and-responses d) None of the Above
48. The Form method of the Request object is used to retrieve the data in
the form fields submitted by the user.
[0.5]
a) True b) False
49. The Redirect method of the Response object is used to redirect the
user to home page.
[0.5]
a) True b) False
50. All event procedures receive two arguments from the events:
The event sender
The class instance that holds data for the event
[1.0]
a) True b) False
51. __________ allow the developer to set the properties of controls and
respond to events raised on the client.
[1.0]
a) Intrinsic Controls c) List Controls
b) Rich Controls d) Validation Controls
52. The data, that populates _____________, is usually retrieved from a
database.

[1.0]
a) Intrinsic Controls c) List Controls
b) Rich Controls d) Validation Controls
53. ____________ are used when you want controls that have complex
functionality
[1.0]
a) Intrinsic Controls c) List Controls
b) Rich Controls d) Validation Controls
54. The process of checking whether the required fields have been left
blank or if they are filled in a pre-specified format is
called______________.
[1.0]
a) Validation c) Field Checking
b) Data Checker d) Validation Control
55. Web controls are not objects. [0.5]
a) True b) False
56. Intrinsic controls were designed with the idea of using them as a
replacement for the standard HTML controls.
[0.5]
a) True b) False
57. The textmode property of a textbox is set to multiline.
<asp:textbox id="add" textmode="multiline" rows="5" columns="10"
runat="server"/>
The textbox can be used to accept _________ lines of information.
[1.5]
a) Single Only c) Multiple Only
b) Single and Multiple d) None of the Apply
58. There are only three controls in ASP.NET that can be used to navigate
between pages or move control out to a specified page. These controls
are:

Button
LinkButton
ImageButton
[1.0]
a) True b) False
59. Identify the correct statements
Buttons and ImageButtons are used for posting data back to the
server.
Hyperlinks are used mainly when you need to navigate between
pages.
Although linkbuttons look like hyperlinks on a browser, when clicked on
they send the data entered back to the server.
[1.5]
a) 1, 2 c) 2, 3
b) 1, 3 d) All are correct
60. A checkbox allows the user to select many options at one time. [0.5]
a) True b) False
61. _____________ property is set to true if the changing of the checkbox
status has to be informed to the server immediately.
[1.0]
a) AutoPostBack c) IsPostBack
b) PostBack d) None of the above
62. In ASP.NET, the ____________ control can perform the functionality
required for changing the advertisements.
[1.0]
a) Ad Mover c) Ad Rotator
b) Ad Repeater d) Ad Displayer
63. The calendar control responds to two events:
Date changes
Month changes

[0.5]
a) True b) False
64. Like objects, web controls possess methods and properties and
respond to events.
[0.5]
a) True b) False
65. ASP.NET provides us with container controls, that is, these controls
can contain other controls.
[0.5]
a) True b) False
66. The process of checking whether the user has filled up a form in the
right format and has not left any fields blank is called validation.
[0.5]
a) True b) False
67. Identify the correct statements
RangeValidator: helps in ensuring that a value is entered for a field
CompareValidator: checks if the value of a control matches the value
of another control or variable.
RequiredFieldValidator: checks if the value entered in a control is in
the specified range of values
RegularExpressionValidator: checks if the value entered matches
the regular expression that is specified
[2.0]
CustomValidator: the value entered is checked by a client-side or
server-side function created by you
ValidationSummary: a list of all the validation errors occurring in all
the controls is created and can be displayed on the page.
a) 2, 4, 5, 6 c) 1, 2, 3, 4
b) 3, 4 d) 1, 3
68. Errormessage property is used to specify the message that has to be

displayed when using the validation summary control in your page.
[0.5]
a) True b) False
69. Minimumcontrol and maximumcontrol properties are used to
specify the name of the controls in which the user can enter the
boundaries of the range.
[0.5]
a) True b) False
70. The pattern to which the value must match is specified in the
ValidationFormat property of RegularExpressionValidator control.
[0.5]
a) True b) False
71. The _______ sign specifies that the checking ends here. [1.0]
a) $ c) ^
b) [ ] d) +
72. _____________ controls can be used to provide validation in case the
provided controls are not enough to validate the inputs.
[1.0]
a) RangeValidator c) ValidationSummary
b) RegularExpressionValidator d) CustomValidator
73. ______________ property of page object returns true if all the
validation tests are successful and vice versa.
[1.0]
a) IsValid c) IsComplete
b) IsCorrect d) IsFilled
74. Downlevel browsers understand HTML 4.0. [0.5]
a) True b) False
75. To disable client-side validation the __________ property can be set to
downlevel
[1.0]

a) CTarget c) Target
b) BrowserTarget d) ClientTarget
76. Code Behind allows us to write the code to provide the required
functionality in a separate file and the code to create the graphics for
the web page in a separate file.
[0.5]
a) True b) False
77. An ASP.NET application is a collection of all the ASP.NET pages,
.aspx files, and various other files that are required to provide the
essential functionality of the application.
[0.5]
a) True b) False
78. An ASP.NET application object is created the first time a request is
made to the server; after that, no ASP.NET code executes.
[0.5]
a) True b) False
79. _____________ fired when the first ASP.NET page in the current
application directory (or its sub-directories) is called.
[1.0]
a) Application_OnBeginRequest c) Application_OnStart
b) Session_OnBeginRequest d) Session_OnStart
80. _______________ fired when the last session of the application ends.
Also fired when the web application is stopped using the Internet
Services Manger snap-in.
[1.0]
a) Application_OnEndRequest c) Application_OnEnd
b) Session_OnEndRequest d) Session_OnEnd
81. You can add code to the event-handlers of the global.asax file to:
 Initialize application or session level variables.
 Connect to databases.

 Send cookies.
[0.5]
a) True b) False
82. The web pages in an application can’t execute the event-handlers in
the Global.asax file automatically.
[0.5]
a) True b) False
83. Page-level variables are of two types:
• Application-level variables are used to share common
information across several users.
• Session-level variables are used to pass information from one
page to another for a particular user. That is, the information is
maintained throughout the session of a particular user.
Session-level variables handling is covered in a later session.
[1.0]
a) True b) False
84. Application variables can be accessed and updated by all the pages of
an ASP.NET application.
[0.5]
a) True b) False
85. The lock method is used to release the lock on the application
variables.
[0.5]
a) True b) False
86. The Web server monitors the time allocated to processing the
resource. If a large request is made, or if a user session is inactive for
a long period of time, the server terminates a request. This process is
termed as ____________.
[1.0]
a) Status Check c) Timing Out

b) Calculate Time d) Time Checker
87. ___________ is used to specify the period for which a script can run
on the server before it is terminated.
[1.0]
a) ScriptTimeOut b) MachineName
88. The ___________ object has following methods that are used to
control the various features of the web server.
 Execute and Transfer method
 HTMLEncode method
 UrlEncode method
 MapPath method
[1.5]
a) Response c) Client
b) Request d) Server
89. The ______________ method is used to transfer execution from the
current page to another page and return the execution to the current
page.
[1.0]
a) Transfer c) Run
b) Upload d) Execute
90. The Transfer method is used to transfer execution partially to
the specified page.
[0.5]

×