New Updated Microsoft MTA 98-363 Real Exam Questions and Answers Download 41-50

Ensurepass

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?

 

  1. Server.Transfer

  2. Server.Execute

  3. Response.Redirect

  4. 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?

 

  1. Place the files in the root of the App_Code directory.

  2. 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.

  3. Place the files in the root of the Bin directory.

  4. 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?

 

  1. When the code-behind file for the Default.aspx page cannot be found

  2. When handled exceptions occur while executing the Default.aspx page

  3. When an unhandled exception occurs while executing the Default.aspx page

  4. 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:

 

  1. you need to access a row of data more than once.

  2. you need to manipulate data from multiple sources, such as a database and an XML file.

  3. you need to perform a large amount of processing per row.

  4. 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?

 

  1. User styles applied by the readers themselves

  2. Inline style

  3. External style sheets

  4. 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?

 

98-363-demo-7

 

  1. 166

  2. 161

  3. 116

  4. 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?

 

  1. Response

  2. Request

  3. Application

  4. 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?

 

  1. Add a <style> element to the <head> element of the master page.

  2. Add a <style> element to the Web.config file.

  3. Add a <link> element to the Web.config file.

  4. Add a <link> element to the <head> element of the master page.

 

Correct Answer: D

 

 

QUESTION 49

A user control:

 

  1. can contain controls and HTML markup.

  2. cannot include server-side code.

  3. does not have properties or methods.

  4. 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?

 

  1. tran.ResetStatistics();

  2. tran.Undo();

  3. tran.Rollback();

  4. 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