Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCSD > Some questions regarding 070-305 and hopefully some right answers. Needs correction... wink, wink ;-)

Reply
Thread Tools

Some questions regarding 070-305 and hopefully some right answers. Needs correction... wink, wink ;-)

 
 
Daniel Walzenbach
Guest
Posts: n/a
 
      11-09-2003
Hi,



I just did Developing Enterprise Web-based Applications with .NET: ASP.NET on http://www.msmeasureup.com/test/home.asp.

As you all know Microsoft doesn't say you where you performed well (or not) but instead propose putting more effort in these and those topics. I pasted some questions where I was not sure about the answer. I (and probably a lot of other users as well) would be more than thankful for your comments/answers.





QUESTION 1 ************************************************** ***************

Two Web applications are deployed on a Web server that has the entry shown below in its Machine.config file:



<trace enabled="true" localOnly="true" pageOutput="false" requestLimit="30" traceMode="SortByTime" />



WebApp1 has the entry shown below in a Web.config file in its root directory:



<trace enabled="false" />



WebApp1 has the entry shown below in a Web.config file in its OrderEntry subdirectory:



<trace enabled="true" localOnly="true" pageOutput="true" requestLimit="30" traceMode="SortByCategory" />



WebApp1 does not have any other Web.config files. WebApp2 does not have a <trace> element in its Web.config file.



Which statements correctly describe how events will be traced? (Select all that apply.)



(1) Requests for a page in the WebApp2 Services subdirectory will be logged to the trace file.



(2) Requests for a page in the WebApp1 OrderEntry subdirectory will be displayed on the page.



(3) Requests for a page in the WebApp1 Products subdirectory will be logged to the trace file.



(4) Requests for a page in the WebApp1 root directory will be logged to the trace file.



(5) Requests for a page in WebApp2 will not be logged.



(1) True because of Machine.config settings

(2) No Trace output because of Web.config in \

(3) No Trace logging because of Web.config in \

(4) No Trace logging because of Web.config in \

(5) False because of Machine.config settings





QUESTION 2 ************************************************** ***************

You are troubleshooting a deployed Web application and need to change the <trace> element to enable tracing on the page. You modify the Web.config file for the application.



Which statements correctly describe when the change will be applied and its impact on current users? (Select all that apply.)



(1) Current users will be immediately disconnected from the application.



(2) The Web application will be restarted and the configuration file will be read immediately.



(3) State data stored in the Application object will be maintained.



(4) State data stored in the Session object will be lost.



(5) Current users will be given a five-minute warning before the Web application is restarted.



(1) False

(2) True

(3) False

(4) True

(5) False





QUESTION 3 ************************************************** ***************

You are configuring a Web server to support remote debugging of Microsoft(R) ASP.NET applications. You must grant the necessary permissions to the users who will access the application using remote debugging.



To which group must each user belong?



(1) Debugger Users



(2) Administrators



(3) Power Users



(4) Remote Desktop Users



(1) False

(2) True

(3) False

(4) False





QUESTION 4 ************************************************** ***************

Your application needs to display custom error pages in response to a 404 error and a 500 error. The error pages should be displayed when either of these errors occurs in any page of your application.



What must you do to cause the correct error pages to display?



(1) Add an errorPage attribute to each .aspx file.



(2) Add an errorPage attribute to the Global.asax file.



(3) Add a <customErrors> element to the Global.asax file.



(4) Add a <customErrors> element to the Web.config file.



(1) False

(2) False

(3) False

(4) True





QUESTION 5 ************************************************** ***************

A Microsoft(R) ASP.NET Web application includes the following code in the HTML view:

Age: <select name="Age" size=1>

<%

Dim x as Integer

For x = 15 to 18

%>

<option><%=x%>

<%Next%>

</option>

</select>



Which statement correctly describes the way in which the code will run?



(1) The code will be interpreted by the script engine and run on the server.



(2) The code will run on the client only if the client browser supports DHTML.



(3) The code will always run on the client.



(4) The code will be compiled by and run on the server.



(1) True

(2) False

(3) False

(4) False





QUESTION 6 ************************************************** ***************

You have implemented the btnAverage_Click event as shown below:



Private Sub btnAverage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAverage.Click

Try

Dim iNumScores As Integer

iNumScores = txtScores.Text

lblMsg.Text = "Your average score is " & iTotal/iNumScores

Catch ex As System.FormatException

lblMsg2.Text = "You must enter a numeric value"

Catch ex As System.ArithmeticException

lblMsg3.Text = "Invalid Value"

Catch ex As System.Exception

lblMsg4.Text = "General Exception"

Finally

lblMsg5.Text = "Thank you for playing"

End Try



Assuming iTotal is a class-level variable set to 28, which messages will the application display when the user enters 2 in txtScores and clicks btnAverage? (Choose all that apply.)



(1) Your average score is 14



(2) General Exception



(3) Invalid Value



(4) You must enter a numeric value



(5) Thank you for playing



(1) True

(2) False

(3) False

(4) False

(5) True



I'm not sure because of Option Strict. I assume that it's off as it is default in VB.NET but how would this be in an exam? Or is this assumption completely bulls.?



QUESTION 7 ************************************************** ***************

The same header is used on every page of the Web application that you are developing. You want to use caching to optimize performance.



What steps must you take to cache only the header information on the page?



(1) Enclose the header information in a <form> element.

Add the following attribute to the <form> element:

OutputCacheDuration="600"



(2) Enclose the header information in a <form> element.

Add the following attribute to the <form> element:

OutputCacheDuration="*"



(3) Enclose the header information in a <form> element.

Add the following attributes to the <form> element:

OutputCacheDuration="600" VaryByParam="none"



(4) Create a User control containing the header information.

Add the following directive to the User control:

<%@ OutputCache Duration="600" %>



(5) Create a User control containing the header information.

Add the following directive to the User control:

<%@ OutputCache Duration="600" VaryByParam="none" %>



(6) Create a User control containing the header information.

Add the following directive to the User control:

<%@ OutputCache Duration="*" %>



(5) True



QUESTION 8 ************************************************** ***************

You are using Microsoft(R) Windows(R) integrated authentication to access a database server. You need all users who access the Inventory Web application to access the database using their Windows logon.



Which XML element must you add to the Web.config file?



(1) <authentication impersonate="true"/>



(2) <authentication identity ="impersonate" />



(3) <identity impersonate="true" />



(4) <authorization impersonate="true" />



(3) True





QUESTION 9 ************************************************** ***************

A CustomValidator control is defined as follows:

<asp:CustomValidator ClientValidationFunction = "CheckInput" OnServerValidate = "CheckStillValid">



Which two statements correctly describe the CheckInput and CheckStillValid functions when the page is viewed using Internet Explorer 4.0? (Choose two.)



(1) The CheckInput function will run on the server.



(2) The CheckInput function will not run.



(3) The CheckStillValid function will run on the server.



(4) The CheckStillValid function will not run.



(5) The CheckInput function will run on the client.



(6) The CheckStillValid function will run on the client.



(1) False

(2) False

(3) True

(4) False

(5) True

(6) False





QUESTION 10 ************************************************** **************

All of the Web applications used on your company's intranet must use the same database connection strings. You want to maintain these connection strings in the most central location possible.



Your company's intranet is deployed on a Web farm that contains three Web servers.



Where should the connection strings be stored?



(1) In each application's Global.asax file



(2) In each application's Web.config file



(3) In the Machine.config file on each Web server



(4) In the Machine.config file on one Web server



(1) False

(2) False

(3) True

(4) False





Thank you for your help.

Best regards


Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

 
Reply With Quote
 
 
 
 
Daniel Walzenbach
Guest
Posts: n/a
 
      11-10-2003
Question 5
http://msdn.microsoft.com/library/de...ggingSetup.asp
The remote server must grant access to the debug user. To grant access to a user, you must add the user to the Debugger User group on the server. This permission is required even if the debugger user is an administrator on the remote server.
"Daniel Walzenbach" <(E-Mail Removed)> schrieb im Newsbeitrag news:%(E-Mail Removed)...
Hi,



I just did Developing Enterprise Web-based Applications with .NET: ASP.NET on http://www.msmeasureup.com/test/home.asp.

As you all know Microsoft doesn't say you where you performed well (or not) but instead propose putting more effort in these and those topics. I pasted some questions where I was not sure about the answer. I (and probably a lot of other users as well) would be more than thankful for your comments/answers.





QUESTION 1 ************************************************** ***************

Two Web applications are deployed on a Web server that has the entry shown below in its Machine.config file:



<trace enabled="true" localOnly="true" pageOutput="false" requestLimit="30" traceMode="SortByTime" />



WebApp1 has the entry shown below in a Web.config file in its root directory:



<trace enabled="false" />



WebApp1 has the entry shown below in a Web.config file in its OrderEntry subdirectory:



<trace enabled="true" localOnly="true" pageOutput="true" requestLimit="30" traceMode="SortByCategory" />



WebApp1 does not have any other Web.config files. WebApp2 does not have a <trace> element in its Web.config file.



Which statements correctly describe how events will be traced? (Select all that apply.)



(1) Requests for a page in the WebApp2 Services subdirectory will be logged to the trace file.



(2) Requests for a page in the WebApp1 OrderEntry subdirectory will be displayed on the page.



(3) Requests for a page in the WebApp1 Products subdirectory will be logged to the trace file.



(4) Requests for a page in the WebApp1 root directory will be logged to the trace file.



(5) Requests for a page in WebApp2 will not be logged.



(1) True because of Machine.config settings

(2) No Trace output because of Web.config in \

(3) No Trace logging because of Web.config in \

(4) No Trace logging because of Web.config in \

(5) False because of Machine.config settings





QUESTION 2 ************************************************** ***************

You are troubleshooting a deployed Web application and need to change the <trace> element to enable tracing on the page. You modify the Web.config file for the application.



Which statements correctly describe when the change will be applied and its impact on current users? (Select all that apply.)



(1) Current users will be immediately disconnected from the application.



(2) The Web application will be restarted and the configuration file will be read immediately.



(3) State data stored in the Application object will be maintained.



(4) State data stored in the Session object will be lost.



(5) Current users will be given a five-minute warning before the Web application is restarted.



(1) False

(2) True

(3) False

(4) True

(5) False





QUESTION 3 ************************************************** ***************

You are configuring a Web server to support remote debugging of Microsoft(R) ASP.NET applications. You must grant the necessary permissions to the users who will access the application using remote debugging.



To which group must each user belong?



(1) Debugger Users



(2) Administrators



(3) Power Users



(4) Remote Desktop Users



(1) False

(2) True

(3) False

(4) False





QUESTION 4 ************************************************** ***************

Your application needs to display custom error pages in response to a 404 error and a 500 error. The error pages should be displayed when either of these errors occurs in any page of your application.



What must you do to cause the correct error pages to display?



(1) Add an errorPage attribute to each .aspx file.



(2) Add an errorPage attribute to the Global.asax file.



(3) Add a <customErrors> element to the Global.asax file.



(4) Add a <customErrors> element to the Web.config file.



(1) False

(2) False

(3) False

(4) True





QUESTION 5 ************************************************** ***************

A Microsoft(R) ASP.NET Web application includes the following code in the HTML view:

Age: <select name="Age" size=1>

<%

Dim x as Integer

For x = 15 to 18

%>

<option><%=x%>

<%Next%>

</option>

</select>



Which statement correctly describes the way in which the code will run?



(1) The code will be interpreted by the script engine and run on the server.



(2) The code will run on the client only if the client browser supports DHTML.



(3) The code will always run on the client.



(4) The code will be compiled by and run on the server.



(1) True

(2) False

(3) False

(4) False





QUESTION 6 ************************************************** ***************

You have implemented the btnAverage_Click event as shown below:



Private Sub btnAverage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAverage.Click

Try

Dim iNumScores As Integer

iNumScores = txtScores.Text

lblMsg.Text = "Your average score is " & iTotal/iNumScores

Catch ex As System.FormatException

lblMsg2.Text = "You must enter a numeric value"

Catch ex As System.ArithmeticException

lblMsg3.Text = "Invalid Value"

Catch ex As System.Exception

lblMsg4.Text = "General Exception"

Finally

lblMsg5.Text = "Thank you for playing"

End Try



Assuming iTotal is a class-level variable set to 28, which messages will the application display when the user enters 2 in txtScores and clicks btnAverage? (Choose all that apply.)



(1) Your average score is 14



(2) General Exception



(3) Invalid Value



(4) You must enter a numeric value



(5) Thank you for playing



(1) True

(2) False

(3) False

(4) False

(5) True



I'm not sure because of Option Strict. I assume that it's off as it is default in VB.NET but how would this be in an exam? Or is this assumption completely bulls.?



QUESTION 7 ************************************************** ***************

The same header is used on every page of the Web application that you are developing. You want to use caching to optimize performance.



What steps must you take to cache only the header information on the page?



(1) Enclose the header information in a <form> element.

Add the following attribute to the <form> element:

OutputCacheDuration="600"



(2) Enclose the header information in a <form> element.

Add the following attribute to the <form> element:

OutputCacheDuration="*"



(3) Enclose the header information in a <form> element.

Add the following attributes to the <form> element:

OutputCacheDuration="600" VaryByParam="none"



(4) Create a User control containing the header information.

Add the following directive to the User control:

<%@ OutputCache Duration="600" %>



(5) Create a User control containing the header information.

Add the following directive to the User control:

<%@ OutputCache Duration="600" VaryByParam="none" %>



(6) Create a User control containing the header information.

Add the following directive to the User control:

<%@ OutputCache Duration="*" %>



(5) True



QUESTION 8 ************************************************** ***************

You are using Microsoft(R) Windows(R) integrated authentication to access a database server. You need all users who access the Inventory Web application to access the database using their Windows logon.



Which XML element must you add to the Web.config file?



(1) <authentication impersonate="true"/>



(2) <authentication identity ="impersonate" />



(3) <identity impersonate="true" />



(4) <authorization impersonate="true" />



(3) True





QUESTION 9 ************************************************** ***************

A CustomValidator control is defined as follows:

<asp:CustomValidator ClientValidationFunction = "CheckInput" OnServerValidate = "CheckStillValid">



Which two statements correctly describe the CheckInput and CheckStillValid functions when the page is viewed using Internet Explorer 4.0? (Choose two.)



(1) The CheckInput function will run on the server.



(2) The CheckInput function will not run.



(3) The CheckStillValid function will run on the server.



(4) The CheckStillValid function will not run.



(5) The CheckInput function will run on the client.



(6) The CheckStillValid function will run on the client.



(1) False

(2) False

(3) True

(4) False

(5) True

(6) False





QUESTION 10 ************************************************** **************

All of the Web applications used on your company's intranet must use the same database connection strings. You want to maintain these connection strings in the most central location possible.



Your company's intranet is deployed on a Web farm that contains three Web servers.



Where should the connection strings be stored?



(1) In each application's Global.asax file



(2) In each application's Web.config file



(3) In the Machine.config file on each Web server



(4) In the Machine.config file on one Web server



(1) False

(2) False

(3) True

(4) False





Thank you for your help.

Best regards


Daniel Walzenbach

P.S. If you need to contact me simply remove ".NOSPAM" from my email address.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An Idea of teaching Ruby online using WinK :: Help with Table ofContents Navin Dhanuka Ruby 0 03-19-2011 04:38 PM
The D3 Gets A Big Wink At The Repuplican Party's Meeting Yesterday!! Rita Berkowitz Digital Photography 4 02-20-2008 10:45 AM
XML Schema questions (hopefully not too silly) Gus Gassmann XML 3 09-20-2007 12:03 PM
<Hopefully> Simple Catalyst 2950 Questions... CB Cisco 1 08-04-2006 05:11 PM
WINK? Matt Cisco 2 06-02-2004 02:00 PM



Advertisments