The ______________ is used to break down the data into packets that are transferred over the network
Trang 1Question Bank
ASP Net and Webforms
1. The is used to break down the data into packets that
are transferred over the network
[1.0]
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
4. A _ processes scripts and sends the resulting HTML page to the client browser that requested it [1.0]
5. _ is a client / server protocol that is used to transfer web pages [0.5]
Trang 26. The client sends a request to the web server [0.5]
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]
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]
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]
Trang 312. An _ is an area on a web site available only to a set of
registered visitors
[1.0]
13. There are _ phases of web application development [0.5]
a) Planning the Web
application c) Designing the Web application
b) Implementing the Web
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
Trang 417. is a method that can be used to create dynamic
HTML pages and provide user interaction
[1.5]
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
22. JavaScript code is typically embedded into an HTML document using
Trang 523 <! - -statements //- -> are comment tags [0.5]
24 The first beta version of ASP code was named _ [1.0]
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]
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
Trang 628. A web service can be described as a function that can be deployed
over the web
[0.5]
29. In the case of a Web-enabled application, firstly the Internet is a
_ network Secondly, Web pages are _. [1.0]
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]
31. The directive is used to specify attributes that affect the
32. The section is where most of the code for providing the
required functionality is written
Trang 734. Which are the two types of server controls? [1.5]
b) Internet Controls d) Script Controls
35. The _ attribute of the control allows a developer to access
36. The control is a hidden control that is added to the
form when the form is submitted to the server
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]
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]
Trang 8The 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
41. object is used to store information for a particular user
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]
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]
Trang 944. The web server manages the virtual directory settings, permissions
and user access
[0.5]
45. If a directory has write and execute permissions, a user cannot
upload aspx files and execute them on your Web server
47. The communication between the client and the server take place
through a series of _
[1.0]
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]
49 The Redirect method of the Response object is used to redirect the
user to home page
[0.5]
50. All event procedures receive two arguments from the events:
The event sender
The class instance that holds data for the event
[1.0]
Trang 10a) True b) False
Trang 1151. allow the developer to set the properties of controls and
a) Intrinsic Controls c) List Controls
b) Rich Controls d) Validation Controls
52. The data, that populates _, is usually retrieved from a
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]
b) Data Checker d) Validation Control
56. Intrinsic controls were designed with the idea of using them as a
replacement for the standard HTML controls
[0.5]
Trang 1257. 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]
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:
59. Identify the correct statements
Buttons and ImageButtons are used for posting data back to the
60. A checkbox allows the user to select many options at one time [0.5]
61. _ property is set to true if the changing of the checkbox
status has to be informed to the server immediately
[1.0]
Trang 13b) PostBack d) None of the above
62. In ASP.NET, the control can perform the functionality
required for changing the advertisements
65. ASP.NET provides us with container controls, that is, these controls
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]
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]
Trang 14CustomValidator: 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
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]
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]
70. The pattern to which the value must match is specified in the
ValidationFormat property of RegularExpressionValidator control.
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
Trang 1573. property of page object returns true if all the
validation tests are successful and vice versa
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]
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]
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]
79. _ fired when the first ASP.NET page in the current
application directory (or its sub-directories) is called
[1.0]
Trang 16a) 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]
82. The web pages in an application can’t execute the event-handlers in
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
Trang 1785. The lock method is used to release the lock on the application
variables
[0.5]
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]
b) Calculate Time d) Time Checker
87. _ is used to specify the period for which a script can run
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]
90. The Transfer method is used to transfer execution partially to
the specified page.
[0.5]
Trang 1892. The greater than (>) and lesser than (<) symbols are translated into
_ and _ characters in the html source code
[1.0]
93. When the URLEncode method processes the data:
1 Spaces are replaced with the plus (+) character
2 Fields are encoded
3 A fieldname is assigned to the associated field value
4 Non-ASCII characters are replaced with escape codes
Identify the correct statements
[1.0]
94. The MapPath method is used by the server to map a path to the
95. A web site can have more than one application Each application is
96. The sequence that is followed when a user accesses an aspx page:
1 The request first comes in (begins)
2 The request ends
[1.0]
Trang 193 Then the session starts, the page loads
97. Cookies are a way of maintaining information about a user [0.5]
98. A _ is a small packet of information that is used to
maintain information on the user's computer
[1.0]
99. Identify the correct statement(s)
a A persistent cookie expires when the user leaves the web site
b A temporary cookie is retained on the client machine and can
be read by the web server when the user next accesses the web site
[1.0]
a) Statement A is Correct c) Statement B is Correct
b) Both are Correct d) Both are Wrong
100 The cookie is stored on the user’s machine in the _ folder [1.0]
Trang 20102 The class of the Request object is used to retrieve
information stored in a cookie and sent to the server through an HTTP
104 There is a limit to the number of cookies that can be sent or issued by
105 The _ object is used to store information about a user [1.0]
106 Identify the correct statements.
The Session object contains information that is specific to a particular user This information can be shared or accessed by other users of the applcation
When the user makes additional requests to the server, the user ID is transferred between the client and server
When the session expires or is terminated, the server destroys the
Trang 21107 A session variable is same as an application variable [0.5]
110 The method is used to explicitly end a session [1.0]
112 A _can be defined as a collection of
related data and a set of programs that access and manipulate this
data
[1.0]
a) Database Self Management
Trang 22b) Data Self Management
System
d) Database Management System
113 _model is similar to the Hierarchical Database
Model
[1.0]
b) Flat-File Database d) None of the Above
114 A _ is a collection of related information stored in an
117 A column that definitely contains a value which is also unique in all the
118 A Relational Database is a database based on the network model [0.5]
Trang 23121 Identify the correct statements
Using SELECT you can:
1 Display some or all of the columns from your tables
2 Display some or all of the rows from your tables
3 Display statistical information from the tables, like averages or sums of column values
4 Display information from two or more tables
[1.5]
122 The _ is used to retrieve all the columns from the table [1.0]
123 While using + sign in the selected list you should be careful about the
data types of the columns The data type of the column of right and
left should be the different Otherwise SQL will give an error
[0.5]