-
70-547题库demo免费下载
Filed under MicrosoftAug 3Microsoft认证70-547考试题库介绍
考试代号: 70-547
问题数量:73 Q&As
更新时间: 2009-09-04
注册地点: Prometric/Pearson VUE
题库全称:PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk免费70-547题库Demo赏析
Exam : Microsoft 70-547
Title : PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk1. You create Web-based applications. You are creating an Internet banking application. The application will be used by bank account holders.
You are creating a method to withdraw money from an account. The method must change the account balance according to one of the following rules:
You are translating the specification given here into pseudo code. You start by writing the following code.
You need to insert the correct pseudo code.
Which code segment should you insert?
A. If amount < balance then balance – = amount
If amount < balance + 500 then balance = balance – (amount + 35)
If amount > balance + 500 then throw exception
B. If amount <= balance then balance – = amount
If amount <= balance + 500 then balance = balance – (amount + 35)
If amount > balance + 500 then throw exception
C. If amount < balance then balance – = amount
Else If amount < balance + 500 then balance = balance – (amount + 35)
Else throw exception
D. If amount <= balance then balance – = amount
Else If amount <= balance + 500 then balance = balance – (amount + 35)
Else throw exception
Answer: D2. You create Web-based client applications. You are creating an application that must access different databases depending on whether the application is in demonstration, production, or test mode. The mode is stored in an environment variable.
The configuration file contains the following settings.
You need to ensure that changing the mode will not require you to change the configuration file.
Which code segment should you use?
A. public string GetConnectionString() {
#if PROD
return WebConfigurationManager.ConnectionStrings["ProdDB"].ConnectionString;
#elseif DEMO
return WebConfigurationManager.ConnectionStrings["DemoDB"].ConnectionString;
#else
return WebConfigurationManager.ConnectionStrings["TestDB"].ConnectionString;
#endif
}
B. public string GetConnectionString() {
return WebConfigurationManager.ConnectionStrings[
Environment.GetEnvironmentVariable("WebAppModeDB")].ConnectionString;
}
C. public string GetConnectionString() {
return ConfigurationSettings.AppSettings[Environment.GetEnvironmentVariable("WebAppModeDB")];
}
D. public string GetConnectionString() {
#if PROD
return ConfigurationSettings.AppSettings["ProdDB"];
#elseif DEMO
return ConfigurationSettings.AppSettings["DemoDB"];
#else
return ConfigurationSettings.AppSettings["TestDB"];
#endif
}
E. public string GetConnectionString() {
return WebConfigurationManager.ConnectionStrings["Database"].
ConnectionString;
}
Answer: B3. You create Web-based client applications. You are reviewing a Web application page that populates a list of all employees of your company.
You analyze code and find that the Web application page does not prevent exceptions from traveling to the browser.
You need to ensure that the Web application page intercepts exceptions and presents an error message to the browser.
What change should you suggest?
A. Add the following code segment to the Web.config file.
<system.web>
<compilation debug="true"/>
</system.web>
B. Add the following code segment to the page.
Protected Sub Page_Error(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles Me.Error
Response.Redirect("error.aspx")
End Sub
C. Add the following code segment to the Web.config file.
<system.web>
<customErrors mode="Off"/>
</system.web>
D. Change the Load event handler to the following code segment.
Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles Me.Load
Try
LoadEmployees()
Catch
Response.Redirect("error.aspx")
End Try
End Sub
Answer: B4. You create Web-based client applications. You are creating a class library that will be used by an e-commerce Web-based application. The library has an abstract class that is named Product. The Product class serves as a base class for the other classes and provides a default ProductID property.
Each class other than the base class represents a type of product that is sold by your company. There is a ProductID property and a GetProductDetails procedure for each product type.
You need to ensure that the application meets the following requirements:
What should you include in the Product class?
A. a MustOverride ProductID property and an overridable GetProductDetails procedure
B. an overridable ProductID property and an overridable GetProductDetails procedure
C. an overridable ProductID property and a MustOverride GetProductDetails procedure
D. a MustOverride ProductID property and a MustOverride GetProductDetails procedure
Answer: C5. You create Web-based client applications. You are creating an application that must access different databases depending on whether the application is in demonstration, production, or test mode. The mode is stored in an environment variable.
The configuration file contains the following settings.
You need to ensure that changing the mode will not require you to change the configuration file.
Which code segment should you use?
A. Public Function GetConnectionString() As String
#If PROD Then
Return WebConfigurationManager. _
ConnectionStrings("ProdDB").ConnectionString
#ElseIf DEMO Then
Return WebConfigurationManager. _
ConnectionStrings("DemoDB").ConnectionString
#Else
Return WebConfigurationManager. _
ConnectionStrings("TestDB").ConnectionString
#End If
End Function
B. Public Function GetConnectionStringB() As String
Return WebConfigurationManager.ConnectionStrings( _
Environment.GetEnvironmentVariable("WebAppModeDB")) _
.ConnectionString()
End Function
C. Public Function GetConnectionString() As String
Return ConfigurationSettings.AppSettings( _
Environment.GetEnvironmentVariable("WebAppModeDB"))
End Function
D. Public Function GetConnectionString() As String
#If PROD Then
Return ConfigurationSettings.AppSettings("ProdDB")
#ElseIf DEMO Then
Return ConfigurationSettings.AppSettings("DemoDB")
#Else
Return ConfigurationSettings.AppSettings("TestDB")
#End If
End Function
E. Public Function GetConnectionString() As String
Return WebConfigurationManager. _
ConnectionStrings("Database").ConnectionString()
End Function
Answer: B6. You create Web-based applications. You create a loan application form.
The loan application form is used to calculate the monthly payment of loans. The monthly payment is based on the loan amount, rate, and number of months. The form contains four text boxes and a button. There are no other controls in the form. The application event handler has the following lines of code. (Line numbers are included for reference only.)
You must prevent exceptions whenever possible to meet the application requirements.
You need to evaluate the current exception handling mechanism.
What should you conclude?
A. The current exception handling mechanism meets the requirements. Nothing needs to be changed.
B. The current exception handling mechanism does not meet the requirements. A required field validator and a range validator control must be added to validate each text box before the button is clicked.
C. The current exception handling mechanism does not meet the requirements. A required field validator control must be added to validate each text box before the button is clicked.
D. The current exception handling mechanism does not meet the requirements. A regular expression validator control must be added to validate each text box before the button is clicked.
Answer: B7. You create Web-based applications. You are creating an Internet banking application.
You write the following lines of code to represent a method in your application. (Line numbers are included for reference only.)
You use the Microsoft Visual Studio 2005 test feature to automatically generate the following unit test. (Line numbers are included for reference only.)
You need to change the test method to return a conclusive result.
Which line of code should replace the code on line 09 of the unit test?
A. Assert.AreEqual (400M, target.Balance);
B. Assert.IsTrue (target.Balance != 400M);
C. Debug.Assert (target.Balance == 400M,"passed");
D. Debug.Assert (target.Balance == 400M,"failed");
Answer: A8. You create Web-based client applications. You are reviewing a Web application page that populates the list of all employees for your company.
The following code segment loads the list of employees from a database.
You analyze the code segment. You find that the database connection fails to close properly when the GetEmployees method throws an exception.
You need to recommend a change in the code segment to ensure that every possible code path closes the database connection.
Which code segment should you recommend?
A. ‘ Create the connection and open it
Using conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
‘ Get the employees. The connection to the database
‘ is given as parameter
lstEmployees = GetEmployees(conn)
End Using
B. ‘ Create the connection and open it
Dim conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
‘ Get the employees. The connection to the database is
‘ given as parameter
lstEmployees = GetEmployees(conn)
If lstEmployees Is Nothing Then
conn.Dispose()
Else
conn.Close()
End If
C. Dim coll As HandleCollector = _
New HandleCollector("Connections", 0, 5)
‘ Create the connection and open it
Dim conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
coll.Add()
‘ Get the employees. The connection to the database is
‘ given as parameter
lstEmployees = GetEmployees(conn)
‘ Close the connection to the employee data store
conn.Close()
coll.Remove()
D. Using factory As IDisposable = _
TryCast(DbProviderFactories.GetFactory(
"System.Data.SqlClient"), IDisposable)
Dim conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
‘ Get the employees. The connection to the database
‘ is given as parameter
lstEmployees = GetEmployees(conn)
End Using
Answer: A9. You create Web-based client applications. You create a component named Orders for a company named Northwind Traders.
This component is used to retrieve and update data in the Orders table of the company’s database. The schema of the Orders table is as shown in the following Exhibit. (Click the Exhibit button.)
The Orders component permits the client application to perform the following tasks:
An instance of the Order class represents a single order that is identified by the OrderID parameter. An instance of the Order class permits the client application to perform the following tasks:
You need to create the design for the component.
What should you do?
To answer, drag the appropriate members to the correct locations in the member type column.
Answer:10. You create Web-based client applications. You deploy an application on the company extranet. The sales team requires notification when an order total exceeds the company’s approval levels.
The application requires you to send an e-mail to the sales manager to receive approval for any order over $100,000. You must meet the following constraints to achieve this requirement:
The design team plans to use the SimpleMailWebEventProvider class of the health monitoring APIs to send the e-mail.
You need to evaluate whether the design meets the requirement.
What should you recommend?
A. The design meets the requirement.
B. The design does not meet the requirement. Though there is a built-in event handler to process all errors, you need to write a custom provider to send e-mail to the sales manager.
C. The design does not meet the requirement. You need to write a custom event handler to respond to an application specific trigger. You can use a built-in provider to send e-mail to the sales manager.
D. The design does not meet the requirement. You need to write a custom event handler to respond to an application specific trigger. You need a custom provider to write e-mail to the sales manager.
Answer: C11. You create components for Web-based client applications. You are creating a BankAccount class.
The BankAccount class contains an AccountNumber property and a CreateAccount method. The CreateAccount method is used to create a new account. The method generates a unique random value for the actNumber field.
You need to ensure that the BankAccount class is extendable, and that it serves as the base class for other derived classes. You also need to ensure that each derived class can have its own guidelines to generate account numbers in the CreateAccount method.
Which code segment should you use?
A. Public Class BankAccount
Protected actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Overridable Function CreateAccount() As BankAccount
…
End Function
End Class
B. Public Class BankAccount
Private actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Overridable Function CreateAccount() As BankAccount
…
End Function
End Class
C. Public Class BankAccount
Protected actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Function CreateAccount() As BankAccount
…
End Function
End Class
D. Public Class BankAccount
Private actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Function CreateAccount() As BankAccount
…
End Function
End Class
Answer: A12. You create Web-based client applications. You create a Web site that will be used to simulate different types of loans. You are writing a method to calculate the payment on a simple loan.
You write the following lines of code for the method. (Comments are included for reference only.)
You write the following code for the unit test.
You enable coverage testing for this unit test.
You need to identify the coverage of your test.
Which lines are covered by the test?
A. Lines commented A, B, and C
B. Lines commented A and C
C. Lines commented A, B, C, D, E, and F
D. Lines commented A, B, C, E, and F
Answer: B13. You create Web-based client applications. You are creating a class named Product. The Product class will be used by a Web-based application to retrieve and modify product information.
When you create an instance of the Product class, you retrieve the current information from the Products table. The Product class contains a static member named CreateNewProduct. The CreateNewProduct method is used to add a new product to the database and return the primary key. The Products table contains the following fields:
You need to create the constructor for the Product class.
Which code segment should you use?
A. public Product(int ProductID, string ProductName, string Description, int CategoryID, decimal CurrentPrice) {
…}
B. public Product(int ProductID, string ProductName) {
…
}
C. public Product() {
…
}
D. public Product(int ProductID)?{
…
}
Answer: D14. You create Web-based client applications. You create a class library that is named Fabrikam.dll. Ten applications will use Fabrikam.dll.
Fabrikam.dll contains two classes that are named Order and OrderDetail. The class library must meet the following requirements:
You need to design the interface for the OrderDetail class.
Which code segment should you choose?
A. public sealed class OrderDetail {
internal OrderDetail(){
…
}
}
B. internal sealed class OrderDetail {
internal OrderDetail() {
…
}
}
C. public sealed class OrderDetail {
public OrderDetail() {
…
}
}
D. public sealed class OrderDetail {
private OrderDetail() {
…
}
}
Answer: A15. You create Web-based applications. You are creating an Internet banking application.
You write the following lines of code to represent a method in your application. (Line numbers are included for reference only.)
You use the Microsoft Visual Studio 2005 test feature to automatically generate the following unit test. (Line numbers are included for reference only.)
You need to change the test method to return a conclusive result.
Which line of code should replace the code on line 07 of the unit test?
A. Assert.AreEqual(400D, target.Balance)
B. Assert.IsTrue(target.Balance <> 400D)
C. Debug.Assert(target.Balance = 400D, "passed")
D. Debug.Assert(target.Balance = 400D, "failed")
Answer: A免费下载70-547题库Demo
Examsoon提供最新的MCPD认证 70-547题库,其全名为:(PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk). 在您决定是否购买之前 可以先下载70-547题库的部分演示. Examsoon是全球唯一提供所有IT认证考试题库demo免费下载的厂商 ,以下为免费70-547模拟测试题的下载链接
Microsoft 70-547学习指南
MCPD认证 70-547考试已经证明了它在全世界的广泛性和重要性,因此明白这项认证考试的世界各地的人必须具备与认证考试相关领域所需的技能和知识。Microsoft认证 70-547学习指南的目的是检查考生的能力和他对概念的意识。很多时候练习测试70-547考试都已经被修改过了,删掉了许多过时的东西,而那些需求是在考试课程。当应用到时候你所学的知识的时候,就会鉴定出你所学到的东西以及对所学知识的应用是多么的恰到好处。Microsoft认证 70-547是在IT行业的知名品牌,所以如果您通过了这样一个知名公司举行的一次考试,你可以想象你将来的事业会做的多么好。
想要通过这个考试当然存在很多困难。你所要做的就是准备好充足的勇气和信心,而这些都来源与你平时训练的好坏.建议大家可以去Examsoon这个网站看一下,它的70-547考试是为了测试您在这方面的知识的掌握程度,最好的部分是它可以使你不断更新你所学的知识,不断进步。如果你知道所有的概念和如何使用他们的时候才是你真正掌握了Examsoon的用意。这门考试检查了您的能力和一旦你通过这次考验你将成为最优秀的人才,其他70-547考试的Examsoon结算值得注意的影响就是你的薪水将直线上升这大概也是每个人都希望获得的,所以要找一些好的资源才行。
Examsoon考题大师70-547试题都是考试原题的完美组合,覆盖率95%以上,答案由多位专业资深讲师原版破解得出,正确率100%,只要您使用Examsoon的考试题库参加70-547考试,保证您一次轻松通过考试;
售后服务第一!我们相信要想在当今时代取得成功,必须为广大用户提供全套的周到细致的全程优质售后服务,只有客户满意了,才能发展。客户至上是Examsoon考题大师的一贯宗旨;
Leave a Reply
You must be logged in to post a comment.

Recent Comments