You have developed a timesheet entry application that will be used by all
wmployees in your company. You have used ASP.NET to develop this application and
have deployed it on the companys Web server. What should all the employees of the
company install on their computers before accessing the timesheet entry application?
A -
Visual Studio .NET
B -
.NET Framework SDK
C -
.NET Framework Redistributable
D -
A Web browser
2-
You have written a Visual C# .NET method that opens a database connection
using a SqlConnection object, which retrieves some information from the database and
then closes the connection. The information is retrieved using a stored procedure that
might not always be available because of the maintenance schedules. You have wrapped
the code to call the stored procedure in a try-catch-finally block. You use two catch
blocks-one to catch the exceptions of type SqlException and the second to catch the
exceptions of type Exception. Which of the following places should you choose for
closing the SqlConnection object?
A -
Inside the catch block that catches Exception objects
B -
Inseide the finally block
C -
Inside the catch block that catches SqlException objects
D -
Inside the try block, before the first catch block
3-
You have developed a Web page that uses the Image ASP.NET Web server
control to display images form various source on the Internet. Sometimes an image might
not be available because a Web site might be temporarily down for maintenance. In these
situations, you are required to display a description for the image.
Which of the following properties of Image would you use?
A -
ToolTip
B -
Attribute
C -
Attribute Text
D -
ImageUrl
4-
You have designed a Web form that uses a DropDownList control to allow a
user to select a state containing her shipping address. Youve implemented an event handler for the SelectedIndexChanged event to update the sales tax amount displayed on
the Web form when a new state is selected.
Users report that the sales tax amount is not update to matter which state they choose in
the DropDownList control. Which must you do to fix this problem?
A -
Set the AutoPostBack property of the DropDownList control to true.
B -
Replace the DropDownList control ListBox control.
C -
Move the code to the PreRender event of the DropDownList control.
D -
Set the EnableViewState property of the DropDownList control to true.
5-
You have created a Web page that users will use register with the Web site.
Inside the event handler for the Load event of the Page, you want to access the data
entered by the users on the Web page. Which of the following properties of the Page
class can give you access to this data?
A -
ClientTarget
B -
Response
C -
Request
D -
Trace
6-
You have developed a form with a DataList control that displays order
information. One of the database columns you want to display on this form is named Tax.
This column contains a currency value. Which binding expression should you use to
display this value on the user interface, formatted as currency?
You need to dynamically change the master page of a content page. In which
page event should you implement the dynamic changing? (Choose the best answer.)
A -
Page_PreInit
B -
Page_Load
C -
Page_Render
D -
Page_PreRender
8-
You should assign different values to the Text and Value properties of a list
item if you want to
A -
assign a key value to the item
B -
None of the above
C -
store a different value for the list item than the one thats displayed
D -
assign an index value to the item
9-
You typically use the ListItem Collection Editor to add items to a List
A -
if the list items wont change
B -
if the Text and Value properties of the list items are differenct
C -
if the Text and Value properties of the list items are the same
D -
if the list items change frequently
10-
You typically use the AlternatingTowStyle element of GirdView control to
A -
change the appearance of every other row
B -
change the data source of every other row
C -
change the data thats displayed from the data source in every other row