首页 > Microsoft > MCPD > 70-549CSharp

PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk:70-549CSharp

科目编号:70-549CSharp

科目名称:PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk

描述:
70-549CSharp 考试是 Microsoft 公司的 PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk 认证考试官方代号,kaoccna 的 70-549CSharp 权威考试题库软件是 Microsoft 认证厂商的授权产品,kaoccna 绝对保证顺利通过,否则承诺全额退款!
PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk 认证作为全球IT领域专家 Microsoft 热门认证之一,是许多大中 IT 企业选择人才标准的必备条件。 如果你正在准备 70-549CSharp 考试,为 Microsoft PRO:Design & Develop Enterprise Appl by Using MS.NET Frmwk认证做最后冲刺,又苦于没有绝对权威的考试真题模拟

    mcsepass 实行"一次不过全额退款"承诺。如果您购买我们 70-549CSharp 的考题,只要不是首次通过,凭盖有 PROMETRIC 或 VUE 考试中心钢印的考试成绩单,我们将退还您购买 70-549CSharp 考题大师的全部费用,绝对保证您的利益不受到任何的损失。

70-549CSharp
  • 科目: 70-549CSharp
  • 原价: ¥ 507.00
  • 现价: ¥ 358.00

kaoccna 的优势

70-549CSharp 试题的质量和价值
mcsepass 模拟测试题具有最高的专业技术含量,只供具有相关专业知识的专家和学者学习和研究之用。
100% 保证您通过 70-549CSharp 的考试
如果你使用 mcsepass 模拟测试,我们将保证你的第一次参加考试即取得成功,否则,我们将全额退款!
试用后再购买
mcsepass 提供每种产品免费测试。在您决定购买之前,请检测联接,可能存在的问题及试题质量和适用性。
kaoccna认证考试题库网专业提供 Microsoft 70-549CSharp 最新题库下载,完全覆盖 mcsepass 考试原题。

部分考题展示

 
 
Exam : Microsoft 70-549CSharp
Title : Designing and Developing Enterprise Applications Using CSharp


1. You are an enterprise application developer. You are evaluating a component that monitors a Web-based application.
The component stores monitoring information in a database and performs the following functions:
·Retrieves the number of orders placed per second.
·Tracks the data for peak usage of the application and displays the data in a tabular form.
Subsequently, monitoring requirements change in the following manner:
·Users must be able to view data graphically.
·Users must be able to analyze data in real time.
·Users must be able to correlate the number of orders placed per second with the memory usage in the Web server.
You need to evaluate whether the component meets the new requirements and propose a solution, if required.
What should you conclude?
A. The component meets the new requirements.
B. The component does not meet the new requirements. You need to update a text file by using trace statements instead of storing data in a database.
C. The component does not meet the new requirements. You need to update a custom performance counter instead of a database.
D. The component does not meet the new requirements. You need to update a custom event log instead of a database.
Answer: C

2. You are an enterprise application developer. You are creating an application. Within your application, an order contains order lines. Order lines are always contained within an order.
You need to analyze this structure and show the link between the order and the order line by using a class diagram.
Which diagram should you choose?
A.
B.
C.
D.
Answer: A

3. You are an enterprise application developer. You are creating an application for the sales department.
Users in the sales department are occasionally connected to the network. Users enter orders through a smart client interface. The orders are sent to a business component that is installed on an application server. The business component updates the orders. You need to ensure that the orders are reliably delivered to the server.
Which technology should you choose?
A. .NET Remoting
B. Web services
C. Message Queuing
D. DCOM
Answer: C

4. You are an enterprise application developer.
You are reviewing the following code segment. (Line numbers are included for reference only.)
01 public class MyResource: IDisposable {
02
03 private bool disposed = false;
04
05 public void Dispose() {
06 Dispose(true);
07 }
08
09 private void Dispose(bool disposing) {
10 if(!this.disposed) {
11 if(disposing) {
12 ReleaseManagedResources();
13 }
14 ReleaseUnmanagedResources();
15 disposed = true;
16 }
17 }
18
19 ~MyResource() {
20 ReleaseManagedResources();
21 ReleaseUnmanagedResources();
22 }
23 }
You discover that the Dispose pattern is implemented incorrectly.
You need to modify the code segment to ensure that the dispose pattern is implemented correctly.
What should you do?
A. ·Insert the following line of code after line 06.
GC.SuppressFinalize(this);
·Replace lines 20 and 21 with the following line of code.
Dispose(true);
B. ·Insert the following line of code after line 06.
GC.SuppressFinalize(this);
·Replace lines 20 and 21 with the following line of code.
Dispose(false);
C. ·Insert the following line of code after line 19.
GC.SuppressFinalize(this);
·Replace lines 20 and 21 with the following line of code.
Dispose(false);
D. ·Insert the following line of code after line 19.
GC.SuppressFinalize(this);
·Replace lines 20 and 21 with the following line of code.
Dispose(true);
Answer: B

5. You are an enterprise application developer. You are creating a client/server application. You need to install the application on the company network.
The client/server application must meet the following criteria:
·The server component is a class library that is created by using the .NET Framework.
·The client component is a Microsoft Windows-based application that is created by using the .NET Framework.
·The client component and the server component must communicate by using a binary protocol.
·The fewest possible ports are opened between the client component and the server component.
You need to identify a technology that permits the server to communicate with the client component through the TCP/IP protocol.
Which technology should you use?
A. Message Queuing
B. .NET Remoting
C. Web services
D. DCOM
Answer: B

6. You are an enterprise application developer. You are performing a peer code review for an entry-level developer. The developer is implementing server-side business objects.
The business objects must be accessed and activated by using .NET Framework remoting. In addition, the business objects must meet the following requirements:
·Implement an interface for client-side access.
·Inherit from a base business object class.
The developer writes the following code segment.
public class UserObject : BaseBizObject, MarshalByRefObject, IUserObject {}
When the developer attempts to compile the code, an error message is received.
You need to review the code and recommend a solution.
What should you recommend?
A. The class must derive from the MarshalByRefObject class. The UserObject class can access methods in the BaseBizObject class by creating an instance of the BaseBizObject class.
B. The class must derive from the BaseBizObject class. The BaseBizObject class must derive from the MarshalByRefObject class.
C. Change the approach so that the client computer accesses a wrapper class that derives from the MarshalByRefObject class.
D. The class must derive from the MarshalByValue class instead of the MarshalByRefObject class.
Answer: B

7. You are an enterprise application developer.
The data access layer of an application contains the following code segment. (Line numbers are included for reference only.)
01 static public List<Employee> GetEmployees(){
02 List<Employee> employees = new List<Employee>();
03 using (SqlConnection cnn = new SqlConnection(_cnnStr)){
04 SqlCommand cmd = new SqlCommand("GetEmployees", cnn);
05 cnn.Open();
06 DataSet ds = new DataSet();
07 SqlDataAdapter da = new SqlDataAdapter(cmd);
08 da.Fill(ds);
09 foreach (DataRow row in ds.Tables[0].Rows){
10 Employee emp = new Employee();
11 emp.ID = Convert.ToInt32(row["Id"]);
12 emp.Name = Convert.ToString(row["Name"]);
//
13 employees.Add(emp);
14 }
15 }
16 return employees;
17 }
You review the code segment and discover that it takes a long time to execute.
You need to modify the code segment to improve the performance.
What should you do?
A. ·Create a SqlDataReader object.
·Iterate through a DataReader object to populate the employees list.
B. ·Fill a DataTable object by using a DataTable.Load method.
·Iterate through the DataTable to populate the employees list.
C. ·Fill a DataTable object by using a SqlDataAdapter object.
·Iterate through the DataTable to populate the employees list.
D. ·Fill a DataTable object by using a DataTable.Load method.
·Create a DataTableReader object from the DataTable.
·Iterate through the DataTableReader to populate the employees list.
Answer: A

8. You are an enterprise application developer.
You are working on a component in an application that provides a business workflow solution.
The component will be used as a workflow to manage purchase requisitions.
You discover that a WebException is raised when you use the GetApprover private method to invoke a method of a Web Service.
You need identify a code that allows the component to invoke the following methods:
·The GetDefaultApprover method if a WebException is raised
·The ReportError method if any other exception is raised
·The GoToNextStep method if no exception is raised
Which code segment should you use?
A. try{
GetApprover ();
GoToNextStep();}
catch (WebException ex){
GetDefaultApprover ();}
catch (Exception ex){
ReportError();}
B. try{
GetApprover ();
GoToNextStep();}
catch (WebException ex){
GetDefaultApprover ();
}
catch (SqlException ex){
ReportError();
}
C. try{
GetApprover ();
}
catch (WebException ex){
GetDefaultApprover ();
}
catch (Exception ex){
ReportError();
}
finally{
GoToNextStep();
}
D. try{
GetApprover ();
}
catch (WebException ex){
GetDefaultApprover ();
}
catch (SqlException ex){
ReportError();
}
finally{
GoToNextStep();
}
Answer: A

9. You are an enterprise application developer. You are creating a component that will be deployed as part of a class library. The component must meet the following specifications:
·The interface of the component must be accessible to components outside the hosting assembly.
·The interface of the component must be interoperable with components written in any other .NET Framework languages.
·The implementation of the component cannot be expanded upon by a derived class.
You need to design the interface of the component.
Which three tasks should you perform? (Each correct answer presents part of the solution. Choose three.)
A. Apply the CLSCompliant(true) attribute to the assembly and component definition.
B. Apply the abstract keyword to the component definition.
C. Apply the ComVisible(true) attribute to the assembly and component definition.
D. Create a primary interop assembly for the assembly that hosts your component.
E. Apply the sealed keyword to the component definition.
F. Apply the public keyword to the component definition.
Answer: AEF

10. You are an enterprise application developer. You are performing a peer code review for an entry-level developer. The developer is implementing server-side business objects.
The business objects must be accessed and activated by using .NET Framework remoting. In addition, the business objects must meet the following requirements:
·Implement an interface for client-side access.
·Inherit from a base business object class.
The developer writes the following code segment.
Public Class UserObject
Inherits BaseBizObject, MarshalByRefObject
Implements IUserObject
End Class
When the developer attempts to compile the code, an error message is received.
You need to review the code and recommend a solution. What should you recommend?
A. The class must derive from the MarshalByRefObject class. The UserObject class can access methods in the BaseBizObject class by creating an instance of the BaseBizObject class.
B. The class must derive from the BaseBizObject class. The BaseBizObject class must derive from the MarshalByRefObject class.
C. Change the approach so that the client computer accesses a wrapper class that derives from the MarshalByRefObject class.
D. The class must derive from the MarshalByValue class instead of the MarshalByRefObject class.
Answer: B

11. You are an enterprise application developer. You create a component that has a method named IsPrinterLicensed. The method invokes a Web service named printLicensing. The Web service provides a method named checkLicense.
You want to recieve the feedback from the Web service when the call to the Web service is completed.
You write the following code segment. void pl_Completed(Object sender,
printLicense.checkLicenseCompletedEventArgs args)
{
bool Result = args.Result;
// process result
}
You need to invoke the Web service asynchronously. You also need to ensure that the component is notified when the call to the Web service is completed. Which code fragment should you use?
A. pl = new printLicense.printLicensing();
pl.checkLicenseCompleted += pl_Completed;
pl.checkLicense(companyName, printerIP);
B. pl = new printLicense.printLicensing();
pl.checkLicenseCompleted += pl_Completed;
pl.checkLicenseAsync(companyName, printerIP);
C. pl = new printLicense.printLicensing();
pl.checkLicenseAsync(companyName, printerIP);
pl.checkLicenseCompleted += pl_Completed;
D. pl = new printLicense.printLicensing();
pl.AllowAutoRedirect = true;
pl.checkLicenseAsync(companyName, printerIP);
Answer: B

12. You are an enterprise application developer. You create a data access layer for an order processing application.
The data access layer meets the following criteria:
·The data access layer contains a GetConnectionString method to retrieve and return the connection string for the database.
·The data access layer contains a stored procedure named GetTotalOrderAmount.
·The stored procedure runs a select query to return only the sum of the OrderAmount column for the active orders. At times, there might be no active orders.
You create the following method to execute the stored procedure and return the total.
public double GetTotalOrderAmount() {
SqlConnection con = new SqlConnection(GetConnectionString());
string sql = "GetTotalOrderAmount";
SqlCommand cmd = new SqlCommand(sql,con);
IDataReader rd;
con.Open();
rd = cmd.ExecuteReader();
double amt = 0.0;
if (rd.Read()) {
amt = rd.GetDouble(0);
}
rd.Close();
con.Close();
return amt;
}
You need to review the code and recommend modifications to simplify the code and improve performance, if necessary.
What should you conclude and recommend?
A. The code does not need to be modified.
B. The code needs to be modified. You must remove the condition that verifies whether the DataReader object returned any rows.
C. The code needs to be modified. You must use a DataSet object instead of a DataReader object.
D. The code needs to be modified. You must use the ExecuteScalar method instead of the ExecuteReader method.
Answer: D

13. You are an enterprise application developer. You are manipulating a collection of customer, product, and supplier objects.
The collection objects must fulfill the following requirements:
·The objects must use custom sort methods on different properties of the respective classes.
·The objects must be strongly typed.
A developer from your team decides to use the following collection classes.
abstract class MyCollectionBase : System.Collections.CollectionBase {
abstract public void Sort();
}
public class CustomerCollection : MyCollectionBase {
//Code overriding CollectionBase methods
public override void Sort(){
//Customer sorting code }}
public class SupplierCollection : MyCollectionBase {
//Code overriding CollectionBase methods
public override void Sort(){
//Supplier sorting code}}
public class ProductCollection : MyCollectionBase {
//Code overriding CollectionBase methods
public override void Sort(){
//Product sorting code}}
You need to review the code and recommend improvements to simplify maintenance, if necessary.
What should you conclude and recommend?
A. The code does not need to be modified.
B. The code needs to be modified. The MyCollectionBase class must implement the ICollection interface instead of inheriting from the CollectionBase class.
C. The code needs to be modified. Use List<T> class instead of creating custom collections.
D. The code needs to be modified. The child collection classes must inherit from the CollectionBase class instead of the MyCollectionBase class.
Answer: C

14. You are an enterprise application developer. You create an application to provide an enterprise-wide barcode printing solution. You are developing a component that contains a method named InitializePrinter. The method will call a private function named IsPrinterLicensed to verify the license of the printer for the application. You need to ensure that the exceptions raised by the IsPrinterLicensed function bubble up to the application that calls the InitializePrinter method. You also need to ensure that the exceptions contain contextual information. Which code segment should you use?
A. nResult = IsPrinterLicensed(printerName);
InitPrinter(printerName);
B. try {
nResult = IsPrinterLicensed(printerName);
InitPrinter(printerName) ;}
catch (Exception ex){
throw ex; }
C. try {
nResult = IsPrinterLicensed(printerName);
InitPrinter(printerName) ;}
catch (Exception ex){
throw new Exception("Exception thrown from InitializePrinter");}
D. try {
nResult = IsPrinterLicensed(printerName);
InitPrinter(printerName) ;}
catch (Exception ex){
throw new Exception("Exception thrown from InitializePrinter", ex);}
Answer: D

联系我们
联系手机:13861768475
MSN:saleintest@hotmail.com
QQ留言 QQ留言

首页 |代考流程 | 常见问题 | 证书查询 | 认证资讯 | 联系我们 | 站点导航 1 2 3 4 | 站点地图

Any charges made through this site will appear as CertBible Tech LTD. All trademarks are the property of their respective owners.

Copyright©2006-2011 mcsepass Limited. All Rights Reserved