QUESTION 41
You want to add a special announcement to your Web site. You have added a page named announcement.aspx. The announcement should be displayed at the top of the home page. The rest of the home page should be displayed as usual. Which option should you use?
-
Server.Transfer
-
Server.Execute
-
Response.Redirect
-
Meta Refresh
Correct Answer: B
QUESTION 42
You need to use source code written in more than one language in a Web application. What should you do?
-
Place the files in the root of the App_Code directory.
-
Place the code in subdirectories of the App_Code directory and specify the names of the subdirectories in the compilers section of the Web.config file.
-
Place the files in the root of the Bin directory.
-
Place the code in subdirectories of the App_Code directory and specify the names of the subdirectories in the compilation section of the Web.config file.
Correct Answer: D
QUESTION 43
You set the ErrorPage property of a page named Default.aspx to “showErrorInfo.aspx”. When will showErrorInfo.aspx be executed?
-
When the code-behind file for the Default.aspx page cannot be found
-
When handled exceptions occur while executing the Default.aspx page
-
When an unhandled exception occurs while executing the Default.aspx page
-
When handled or unhandled exceptions occur while executing the Default.aspx page
Correct Answer: C
QUESTION 44
You should use a DataReader object to retrieve data when:
-
you need to access a row of data more than once.
-
you need to manipulate data from multiple sources, such as a database and an XML file.
-
you need to perform a large amount of processing per row.
-
you do not need to cache the data.
Correct Answer: D
QUESTION 45
Which approach to applying style elements to your Web page takes the lowest precedence?
-
User styles applied by the readers themselves
-
Inline style
-
External style sheets
-
Internal style sheets
Correct Answer: C
QUESTION 46
A Web page contains the script shown in the exhibit. What will be written to the window when browser executes the page?
-
166
-
161
-
116
-
111
Correct Answer: A
QUESTION 47
Which object can you use to determine whether the browser used to connect to a Web application supports cookies?
-
Response
-
Request
-
Application
-
Session
Correct Answer: B
QUESTION 48
You need to use an external style sheet named bcdstyles.css to define the user interface for an ASP.NET Web site. What should you do?
-
Add a <style> element to the <head> element of the master page.
-
Add a <style> element to the Web.config file.
-
Add a <link> element to the Web.config file.
-
Add a <link> element to the <head> element of the master page.
Correct Answer: D
QUESTION 49
A user control:
-
can contain controls and HTML markup.
-
cannot include server-side code.
-
does not have properties or methods.
-
is a class that inherits from WebControl.
Correct Answer: A
QUESTION 50
Your application must issue several commands on a connection. The commands must either all fail or all succeed. You write code in the try block to execute the commands within a SqlTransaction object referenced by tran. Which statement should you add to the catch block?
-
tran.ResetStatistics();
-
tran.Undo();
-
tran.Rollback();
-
tran.Commit();
Correct Answer: C
Instant Access to Download Latest Complete Collection of Microsoft MTA 98-363 Real Exam
Try Microsoft MTA 98-363 Free Demo
70-410 Dumps VCE PDF
70-411 Dumps VCE PDF
70-412 Dumps VCE PDF
70-413 Dumps VCE PDF
70-414 Dumps VCE PDF
70-417 Dumps VCE PDF
70-461 Dumps VCE PDF
70-462 Dumps VCE PDF
70-463 Dumps VCE PDF
70-464 Dumps VCE PDF
70-465 Dumps VCE PDF
70-480 Dumps VCE PDF
70-483 Dumps VCE PDF
70-486 Dumps VCE PDF
70-487 Dumps VCE PDF