Amit created a new Web site using Visual Studio 2005 in programming language
C#. Later, Amit received an existing Web page from his boss, which consisted of the
Contact.aspx file with the Contact.aspx.vn code-behind page.
What must Amit do to use these files?
A -
Amit must create a new Web site that contains these files Contact.aspx and Contact.aspx.vb. Set a Web reference to the new site.
B -
Both files Contact.aspx and Contact.aspx.vb must be rewritten in C#
C -
Any can simply add files Contact.aspx. Contact.aspx.vb into the existing Web site, because ASP.NET 2.0 supports Web sites that have Web pages that were programmed with different languages.
D -
The Contact.aspx file will work, but Amit must the code-behind page using C#
2-
An IP address is:
A -
an internet protocol address
B -
a value that idenfifies a server
C -
a set of numbers distinguishing computers
D -
All of the others
3-
An HTTP response contains
A -
the address of the browser and the HTML document
B -
the HTML document the address of the browser, the HTML document, and ASP tags
C -
the Command event is raised, followed by the Click event
D -
the Comand event is raised if a value is specified for the CommandName
4-
Application state is typically used for all but one of the following purposes.
Which one is it?
A -
To store page hit counters
B -
To track sessions
C -
To track users visiting the site
D -
To store global application data
5-
____ are modifiers for HTML elements. Bgcolor is an example.
A -
Attributes
B -
Properties
C -
Methods
D -
Objects
6-
Assuming that Cart is a SortedList object, which statement best describes the
operation of the following code?
Dim CartItem As CartItem
Dim CartEntry As DictionaryEntry
For Each CartEntry In Cart
Cart=Ctype ( CartEntry. Value, CartItem)
IstCart.Items.Add ( CartItem.Display) ii
Next
A -
The value of each DictionaryEntry object in the Cart object is stored in a CartItem object, and the data retured from the objects Display method is aaded to a list box.
B -
Each DictionaryEntry object in the Cart object is stored in a CartItem object and added to a list box control.
C -
The value of each DictionaryEntry object in the Cart object is stored in a CartItem object and added to a list box control.
D -
The key and value of each DictionaryEntry object in the Cart object is stored in a CartItem, and the data returned from the object;s Display method is added to a list box
7-
ASP.NET is
A -
VB.Net.
B -
C#
C -
A Web-programming framework
D -
Java
8-
ASP.NET pages can be edited using
A -
Only Web Matrix
B -
Only Microsoft Frontpage
C -
Only Visual Studio.Net
D -
Any text editor
9-
At the application level by making a setting in the pages element of the
applications configuration file (Web.config), which of the following syntax can you
specify that all ASP.NET pages (.aspx files) in the application automatically bind to a
master page?
A -
<@pages master PageFile="MasterPageName.Master"/>
B -
<@pages masterFile="MasterPageName.Master"/>
C -
<@pages masterPage="MasterPageName.Master"/>
D -
<@pages masterPage="MasterPageName"/>
10-
At run time, master pages are handled in the following sequence:
Users request a page by typing the URL of the content page.
When the page is fetched, the @ Page directive is read. If the directive references a
master page, the master page is rea as well. If this is the first time the pages have been
requested, both pages are compliled.
The master page with the updated content is merged into the control tree of the content
page.
The content of individual ____ controls is merged into the corresponding ____ control in
the master page. The resulting merged page is rendered to the browser.