微软资质认证考试题库 583
- 格式:rtf
- 大小:417.65 KB
- 文档页数:102
microsoft认证考试试题及答案2017年microsoft认证考试试题及答案微软认证计划进行了全面升级,以涵盖云技术相关的解决方案,并将此类技能的考评引入行业已获得高度认可和备受瞩目的认证考试体系,从而推动整个行业向云计算时代进行变革。
下面是店铺整理的关于microsoft认证考试试题及答案,欢迎大家参考!1. 您有一台具有以下硬件配置的计算机:1.6 千兆赫 (GHz) 处理器(64 位)8 GB RAM500 GB 硬盘具有 128 MB RAM 的`图形卡您需要选择一个 Window 7 版本以满足以下要求:支持 DirectAccess支持 Windows XP 模式使用所有已安装的内存支持加入一个 Active Directory 域您应该选择哪个版本?A. Windows 7 Enterprise(64 位)B. Windows 7Enterprise (x86)C. Windows 7 Professional(64 位)D. Windows 7 Ultimate (x86)Answer: A2. 您有一台运行Windows 7 Professional 的计算机。
有一个USB 磁盘连接到该计算机。
您需要确保可以启用USB 磁盘上的BitLocker To Go。
您应该怎么办?A. 启用加密文件系统 (EFS)。
B. 将计算机升级到 Windows 7 Enterprise。
C. 初始化受信任的平台模块 (TPM) 硬件。
D. 从企业证书颁发机构 (CA) 获取客户端证书。
3. 您有一台运行 Windows Vista Service Pack 2 (SP2) 的计算机。
您需要将这台计算机升级到 Windows 7。
您应该怎么做?A. 从 Windows 7 安装媒体启动计算机并选择“升级”选项。
B. 从Windows 7 安装媒体启动计算机并选择“自定义(高级)”选项。
C. 在Windows Vista 中,从Windows 7 安装媒体运行Setup.exe 并选择“升级”选项。
心之所向,所向披靡微软认证考试单选1、如果要使图像在缩放时不失真,在图像显示原始大小时,按下()键,拖动图像右下方的控制点,可以按比例调整图像大小BA. CtrlB. ShiftC. AltD. Shift+Alt2、HTML的中文含义是()CA.可延伸标记语言B.标准综合标记语言C. 超文本标记语言D.可扩展超文本标记语言3、文档标题可以在()对话框中修改 BA.首选参数 B。
页面属性 C。
编辑站点 D。
标签编辑器4、HTML语言中,定义文档中一个正在打开的链接的颜色的代码是() BA.<body bgcolor=?> B. <body alink=?> C. <body link =?> D. <body vlink =?>5、HTML语言中为文本加下划线的标记是()CA.<B></B>B.<I></I>C.<U></U>D.<S></S>6若要在新浏览器窗口中打开一个页面,请从属性检查器的"目标"属性设置成()AA. _blankB. _parentC._selfD. _top7.HTML代码<table width=# or%>表示 CA.设置表格单元格之间的间距 B。
设置表格单元格内容与单元格边框之间的间距C.设置表格的宽度:用象素值或百分比样式 D。
设置表格边框宽度()8、当用户将鼠标移动到超级链接文字“百度”上时,在浏览器状态栏中显示“世界上最大的中文搜索引擎”,要实现这种动态效果,应该选择()事件。
B A.设置层文本 B。
设置状态栏文本 C。
设置文本域文字 D。
弹出信息9、下列哪个是图象占位符的属性()AA.名称(name) B。
X轴(X-INDEX) C。
位置 D。
可见性10、dreamweaverMX2004中撤消的快捷建是()CA.CTRL+X B。
Microsoft资格认证考试试题1. 您有两台计算机,分别名为 Computer1 和 Computer2。
您将用户状态数据从 omputer1 迁移到 Computer2。
迁移的文件包含若干Microsoft Office Excel 文件。
您需要确保可以在 Computer2 上通过使用Excel 打开 Excel 文件。
您应该怎么做?A. 安装 Office。
B. 禁用“用户帐户控制”(UAC)。
C. 修改默认程序设置。
D. 运行 Loadstate.exe /i:migapp.xml。
Answer: A2. 您有一台运行 Windows 7 的引用计算机。
您计划部署计算机的一个映像。
您创建名为 answer.xml 的应答文件。
您需要确保在部署映像后安装应用应答文件。
捕获映像之前您应该运行哪一命令?A. Imagex.exe /append answer.xml /checkB. Imagex.exe /mount answer.xml /verifyC. Sysprep.exe /reboot /audit /unattend:answer.xmlD. Sysprep.exe /generalize /oobe /unattend:answer.xmlAnswer: D33. 您的网络由单一的 Active Directory 林组成。
您有 50 台便携式计算机和 50 台台式计算机。
所有计算机都有 32 位硬件。
您计划使用自定义映像将 Windows 7 和 10 个企业应用程序部署到这些计算机。
您需要使用最少的.管理工作量准备部署。
您第一步应该怎么办?A. 在一台计算机上安装 Windows 7 和企业应用程序。
B. 在一台便携式计算机和一台台式计算机上安装 Windows 7 和企业应用程序。
C. 在服务器上,安装并运行 Microsoft Assessment and Planning (MAP) Toolkit。
微软认证考试模拟题及答案一、选择题(每题5分,共50分)1. 以下哪项是微软认证考试的官方名称?A. Microsoft Certified Professional (MCP)B. Microsoft Certified Solutions Expert (MCSE)C. Microsoft Certified Technology Specialist (MCTS)D. Microsoft Certified Trainer (MCT)答案:A2. 以下哪个认证专注于微软的Office应用程序?A. Microsoft Office Specialist (MOS)B. Microsoft Certified Solutions Expert (MCSE)C. Microsoft Certified Professional (MCP)D. Microsoft Certified Technology Specialist (MCTS)答案:A3. 在Windows Server 2016中,以下哪个组件用于提供网络策略和访问控制?A. Active DirectoryB. Group PolicyC. Network Policy Server (NPS)D. Dynamic Host Configuration Protocol (DHCP)答案:C4. 在SQL Server中,以下哪种数据类型用于存储大容量的二进制数据?A. VARCHARB. NVARCHARC. BLOBD. XML答案:C5. 在Windows 10中,以下哪个功能可以用于恢复系统到早期状态?A. 系统还原B. 重置此电脑C. 系统备份D. 系统镜像答案:A6. 以下哪个工具可以用于查看和修改Windows注册表?A. RegeditB. Task ManagerC. Event ViewerD. Performance Monitor答案:A7. 在Windows Server 2016中,以下哪个组件用于提供文件服务器功能?A. File ServerB. Print ServerC. Web ServerD. DHCP Server答案:A8. 在Exchange Server中,以下哪个组件负责处理邮件流?A. Hub Transport ServerB. Mailbox ServerC. Client Access ServerD. Edge Transport Server答案:A9. 在Azure中,以下哪个服务用于提供虚拟机?A. Azure Virtual MachineB. Azure Virtual NetworkC. Azure Blob StorageD. Azure SQL Database答案:A10. 在Office 365中,以下哪个组件用于提供电子邮件和日历服务?A. Exchange OnlineB. SharePoint OnlineC. Skype for Business OnlineD. OneDrive for Business答案:A二、填空题(每题5分,共30分)1. 在Windows Server 2016中,用于存储用户和计算机账户信息的数据库称为______。
QUESTION 1You work as the application developer at Certkiller .com. Certkiller .com uses Visual 2005 as its application development platform.You are in the process of storing numerical values up to 2,100,000,000 into a variable and may require storing negative values using a .NET Framework 2.0 application. You are required to optimize memory usageWhat should you do?A. Int32B. UInt16C. UInt32D. Int16Answer: AQUESTION 2You work as an application developer at Certkiller .com. You are currently in the process of creating a class that stores data about Certkiller .com's customers. Certkiller .com customers are assigned unique identifiers and various characteristics that may include aliases, shipping instructions, and sales comments. These characteristics can change in both size and data type.You start by defining the Customer class as shown below:public class Customer{private int custID;private ArrayList attributes;public int CustomerID{get {return custID;}}public Customer (int CustomerID){this.custID = CustomerID;this.attributes = new ArrayList ();}public void AddAttribute (object att){attributes.Add (att);}}You have to create the FindAttribute method for locating attributes in Customer objects no matter what the data type is.You need to ensure that the FindAttribute method returns the attribute if found,and you also need to ensure type-safety when returning the attribute.What should you do?A. Use the following code to declare the FindAttribute method:public T FindAttribute (T att){//Find attribute and return the value}B. Use the following code to declare the FindAttribute method:public object FindAttribute (object att){//Find attribute and return the value}C. Use the following code to declare the FindAttribute method:public T FindAttribute <T> (T att){//Find attribute and return the value}D. Use the following code to declare the FindAttribute method:public string FindAttribute (string att){//Find attribute and return the value}Answer: CQUESTION 3You work as an application developer at Certkiller .com. You are creating a custom exception class named ProductDoesNotExistException so that custom exception messages are displayed in a new application when the product specified by users is unavailable.This custom exception class will take the ProductID as an argument to its constructor and expose this value through the ProductID. You are now in the process of creating a method named UpdateProduct. This method will be used to generate and manage the ProductDoesNotExistException exception if the ProductID variable contains the value 0.You need to ensure that use the appropriate code for the UpdateProduct method.What should you do?A. Make use of the following code:public void UpdateProduct (){try{if (ProductID == 0)throw new ProductDoesNotExistException (ProductID);}catch (ProductDoesNotExistException ex){MessageBox.Show ("There is no Product" + ex. ProductID);}}B. Make use of the following code:public void UpdateProduct (){try{if (ProductID = = 0)throw new Exception ("Invalid ProductID");}catch (ProductDoesNotExistException ex){MessageBox.Show (ex.Message);}}C. Make use of the following code:public void UpdateProduct (){if (ProductID = = 0)throw new ProductDoesNotExistException (ProductID);}D. Make use of the following code:public void UpdateProduct (){if (ProductID = = 0)throw new Exception ("Invalid ProductID");}Answer: AQUESTION 4You work as the application developer at Certkiller .com. Certkiller .com uses Visual 2005 as its application development platform.You have recently finished development of a class named TestReward and package the class in a .NET 2.0 assembly named TestObj.dll. After you ship the assembly and it is used by client applications, you decide to move the TestReward class from TestObj.dll assembly to the TestRewardObj.dll Assembly. You are to ensure when you ship the updated TestObj.dll and TestRewardObj.dll assemblies that the client applications continue to work and do not require recompiling.What should you do?A. The TypeForwardedTo attribute should be usedB. The TypeConvertor.ConvertTo method should be usedC. The InternalsVisibleTo attribute should be usedD. The Type Convertor.ConvertFrom method should be usedAnswer: AQUESTION 5You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below.* Name* AisleNumber* OnDiscountYou are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?A. public class ShoppingList : ICollection{// Class implementation}B. public class ShoppingList : IEnumerator, IEnumerable{// Class implementation}C. public class ShoppingList : Ilist{// Class implementation}D. public class ShoppingList : Enum{// Class implementation}Answer: BQUESTION 6You work as the application developer at Certkiller .com. Certkiller .com uses Visual 2005 as its application development platform.You are developing a .NET Framework 2.0 application used to store a type-safe list of names and e-mail addresses. The list will be populated all at ones from the sorted data which means you well not always need to perform insertion or deletion operations on the data. You are required to choose a data structure that optimizes memory use and has good performance.What should you do?A. The System.Collections.Generic.SortedList class should be usedB. The System.Collections.HashTable class should be usedC. The System.Collections.Generic.SortedDictionary class should be usedD. The System.Collections.SortedList class should be usedAnswer: AQUESTION 7You work as an application developer at Certkiller .com. You are currently in theprocess of reviewing an application that was created by a fellow developer.The application that you are reviewing includes a declaration for a collection named EmployeeList, which stores Employee objects. The declaration is shown below: public class EmployeeList : Enumerator, IEnumerable{// Class implementation}You require the ability to iterate through the EmployeeList with minimum development effort.What should you do?A. Utilize the switch statementB. Utilize the dowhile statementC. Utilize the foreach statementD. Utilize the if statementAnswer: CQUESTION 8You work as an application developer at Certkiller .com. Certkiller .com has been contracted to develop an application for the local bank.You have been given the responsibility of creating this application and need to store each transaction record, which is identified using a complex transaction identifier,in memory. The bank informs you that the total amount of transaction records could reach 200 per day.To achieve this, you decide to utilize one of the existing collection classes in the .NET 2.0 class library. You need to ensure that you the collection class you select is the most efficient one for storing transaction records.What should you do?A. Select the ListDictionary collection class.B. Select the HashTable collection class.C. Select the Queue collection class.D. Select the StringCollection collection class.Answer: BQUESTION 9You work as an application developer at Certkiller .com. Certkiller .com has been hired by a small local private school to develop a class library that will be used in an application named ManageAttendance for the purpose of managing student records.You are responsible for developing this class library. Certkiller .com has instructed you to create a collection in the application to store learners' results.The school has informed you that they currently only have seven learners, but that this value will triple in the following year. Due to the limited resources, you need to ensure that the collection you create consumes a minimum amount of resources. What should you use to create the collection?A. The HybridDictionary collection class.B. The HashTable collection class.C. The ListDictionary collection class.D. The StringCollection collection class.Answer: AQUESTION 10You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves client information by means of a unique account number.You create a custom collection class, which implements the IDictionary interface,named ClientDictionary. The following code have been included into the new application.//Create Client objectsClient c1 = new Client ("AReid", "Andy Reid", Status.Current);Client c2 = new Client ("DAustin", "Dean Austin", Status.New);//Create ClientDictionary objectIDictionary cData = new ClientDictionary ();cData.Add ("10001", c1);cData.Add ("10002", c2);You use the same method to add other Client objects to the collection. You need to ensure that you are able to retrieve client information associated with the account number 10111.What should you do?A. Use the following code:Client foundClient;foundClient = (Client) cData.Find ("10111");B. Use the following code:Client foundClient;if (cData.Contains ("10111"))foundClient = cData ["10111"];C. Use the following code:Client foundClient;if (cData.Contains ("10111"))foundClient = (Client) cData ["10111"];D. Use the following code:Client foundClient;foreach (string key in cData.Keys{if (key == "10111")foundClient = (Client) cData.Values ["10111"];}Answer: CQUESTION 11You work as an application developer at Certkiller .com. Certkiller .com has instructed you to create a class named MetricFormula. This class will be used to compare MetricUnit and EnglishUnit objects.The MetricFormula is currently defined as follows (Line numbers are used for reference purposes only):1. public class MetricFormula2. {3.4. }You need to ensure that the MetricFormula class can be used to compare the required objects. What should you do? (Choose two)A. Add the following code on line 1:: IComparable{B. Add the following code on line 1:: IComparer{C. Add the following code on line 3:public int Compare (object x, object y){// implementation code}D. Add the following code on line 3:public int CompareTo (object obj){// implementation code}Answer: B, CQUESTION 12You work as an application developer at Certkiller .com. You are developing an application that makes use of a Queue class object named MyQueue. This Queue class object will be used to store messages sent by the user during application run time. The application that you are developing provides an interface for administrators and an interface for users to create message reports.You want to ensure that all user messages stored in the MyQueue object are removed when an administrator selects the reset option.What should you do?A. Use the Enqueue method of the MyQueue object.B. Use the Clear method of the MyQueue object.C. Use the Dequeue method of the MyQueue object.D. Use the TrimToSize method of the MyQueue object.Answer: BQUESTION 13You work as an application developer at Certkiller .com. You are developing an application that will store user messages collectively and the process the messages in sequence. The order in which the messages are processed will depend on the orderin which it is received. To add messages to the collection, users will specify the message that should be stored in a TextBox control named txtMsg and then click a Button control named btnAdd. You need to ensure that the appropriate code is used tocreate the collection. What should you use? (Choose two)A. Queue msgCollection = new Queue ();B. Stack msgCollection = new Stack ();C. msgCollection.Enqueue (txtMSG.Text);D. msgCollection.Push (txtMSG.Text);Answer: A, CQUESTION 14You work as an application developer at Certkiller .com. You are developing an application that makes use of a Queue class object named MyQueue. This Queue class object will be used to store messages sent by the user during application run time.You would like to access the message at the beginning of the queue, prior to processing the user messages, without removing it. What should you do?A. Use the Enqueue method of the MyQueue object.B. Use the Contains method of the MyQueue object.C. Use the Dequeue method of the MyQueue object.D. Use the Peek method of the MyQueue object.Answer: DQUESTION 15You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves employee information by means of a unique staff number.You create a custom collection class, which implements the type-safe IDictionary interface. This collection class is named EmployeeCollection, and is defined using the following code.public class EmployeeCollection : IDictionary <int, Employee>{// Implementation code}You need to ensure that an EmployeeCollection object is instantiated and that Employee objects are added to it.What should you do?A. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add (new KeyValuePair <string, Employee> (e1.ID, e1));eData.Add (new KeyValuePair <string, Employee> (e2.ID, e2));B. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add ((string) e1.ID, e1);eData.Add ((string) e2.ID, e2);C. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add (e1.ID, e1);eData.Add (e2.ID, e2);D. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add (new KeyValuePair (e1.ID, e1));eData.Add (new KeyValuePair (e2.ID, e2));Answer: CQUESTION 16You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves staff information by means of a unique staff number.You have already written the following code for the purpose of storing Employee objects.Employee e1 = new Employee (1001, "Andy Reid", "Manager");Employee e2 = new Employee (1002, "Kara Lang", "Sales Engineer");Dictionary <int, Employee> eData = new Dictionary <int, Employee> ();eData.Add (e1.ID, e1);eData.Add (e2.ID, e2);All other Employee objects have been added in the same way. You are required to display all key/value pairs within the Dictionary collection.What should you do?A. Use the following code:foreach (KeyValuePair<int, Employee> keyPair in eData)Console.WriteLine ("{0} key : {1} value", keyPair.Key, keyPair.Value);B. Use the following code:foreach (string key in eData.Keys)Console.WriteLine ("{0} key : {1} value", Key, (Employee) eData [key]);C. Use the following code:foreach (KeyValuePair keyPair in eData)Console.WriteLine ("{0} key : {1} value", keyPair.Key, keyPair.Value);D. Use the following code:foreach (object value in eData.Values)Console.WriteLine ("{0} key : {1} value", eData [value], value);Answer: AQUESTION 17You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com's parking lot. The application has to store and retrieve vehicle information using a vehicle identification number (VIN).You need to use the correct code to ensure type-safety. What should you do?A. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005);ArrayList vList = new ArrayList ();vList.Add (v1);vList.Add (v2);B. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005); SortedList <string, Vehicle> vList = new SortedList <string, Vehicle> ();vList.Add (v1.VIN, v1);vList.Add (v2.VIN, v2);C. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005);List vList = new List ();vList.Add (v1);vList.Add (v2);D. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005); SortedList vList = new SortedList ();vList.Add (v1.VIN, v1);vList.Add (v2.VIN, v2);Answer: BQUESTION 18You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com's parking lot. The application has to store and retrieve vehicle information in a contiguous list that allows for advanced navigation techniques.You have already written and executed the following code:Vehicle v1, v2, v3, v4, v5;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1H2569122493456960", "Honda Civic", 1999);v3 = new Vehicle ("1F2569106891234589", "Mitsubishi Lancer", 2001);v4 = new Vehicle ("1F7969122491234589", "Mazda MX7", 1998);v5 = new Vehicle ("1T2569122493456123", "Toyota Supra", 2000);LinkedList <Vehicle> vList = new LinkedList < Vehicle > ();LinkedListNode < Vehicle > vNode;vNode = vList.AddFirst (v1);vNode = vList.AddLast (v2);vNode = = vList.AddAfter (vNode, v3);vNode = = vList.AddAfter (vNode, v4);vList.AddLast (v5);foreach (Vehicle v in vList){Console.WriteLine ("{0} {1} ({2})", v.MakeModel, v.Year, v.Vin);}What output will be produced in the console?A. Nissan Silvia 1996 (1M2567871Y91234574)Honda Civic 1999 (1H2569122493456960)Mitsubishi Lancer 2001 (1F2569106891234589)Mazda MX7 1998 (1F7969122491234589)Toyota Supra 2000 (1T2569122493456123)B. Nissan Silvia 1996 (1M2567871Y91234574)Mazda MX7 1998 (1F7969122491234589)Mitsubishi Lancer 2001 (1F2569106891234589)Honda Civic 1999 (1H2569122493456960)Toyota Supra 2000 (1T2569122493456123)C. Nissan Silvia 1996 (1M2567871Y91234574)Mazda MX7 1998 (1F7969122491234589)Mitsubishi Lancer 2001 (1F2569106891234589)Toyota Corolla 2002 (1T2569122493456123)Honda Civic 1999 (1H2569122493456960)D. Nissan Silvia 1996 (1M2567871Y91234574)Mitsubishi Lancer 2001 (1F2569106891234589)Mazda MX7 1998 (1F7969122491234589)Honda Civic 1999 (1H2569122493456960)Toyota Supra 2000 (1T2569122493456123)Answer: BQUESTION 19You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names ofCertkiller .com's clients that are situated in various geographical areas.These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?A. IDictionaryB. IComparableC. IComparerD. IEqualityComparerAnswer: BQUESTION 20You work as an application developer at Certkiller .com. You have been given the responsibility of creating a class named CalcSalary that will determine the salariesof Certkiller .com's staff.The CalcSalary class includes methods to increment and decrement staff salaries.You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application when needed. After viewing the information displayed in the exhibit, you decide to use the Salary delegate to invoke these methods.using System;public delegate boolSalary (Employee Emp, double Amount);public class CalcSalary{// for promotionspublic static bool IncrementSalary (Employee Emp, double Amount){// implementation details}// for demotionspublic static bool DecrementSalary (Employee Emp, double Amount){// implementation details}What code should you use?A. public void Review (Employee emp, double amount){Salary salaryDel;if (emp.Status = = QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel.Invoke (CalcSalary.IncrementSalary (emp, amount));elsesalaryDel.Invoke (CalcSalary.DecrementSalary (emp, amount));}B. public void Review (Employee emp, double amount)Salary salaryDel;if (emp.Status == QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel.Method = CalcSalary.IncrementSalary;elsesalaryDel.Method = CalcSalary.DecrementSalary;salaryDel.Invoke (emp, amount);}C. public void Review (Employee emp, double amount){Salary salaryDel;if (emp.Status == QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel.IncrementSalary (emp, amount);elsesalaryDel.DecrementSalary (emp, amount);}D. public void Review (Employee emp, double amount){Salary salaryDel;if (emp.Status = = QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel = CalcSalary.IncrementSalary;elsesalaryDel = CalcSalary.DecrementSalary;salaryDel.Invoke (emp, amount);}Answer: DQUESTION 21You work as an application developer at Certkiller .com. You have been given the responsibility of creating a class named CalcSalary that will determine the salaries of Certkiller .com's staff. The CalcSalary class includes methods to increment and decrement staff salaries. The following code is included in the CalcSalary class: public class CalcSalary{// for promotionspublic static bool IncrementSalary (Employee Emp, double Amount){if (Emp.Status == QuarterlyReview.AboveGoals)Emp.Salary += Amount;return true;}return false;}//for demotionspublic static bool DecrementSalary (Employee Emp, double Amount){if (Emp.Status == QuarterlyReview.AboveGoals)Emp.Salary -= Amount;return true;}elsereturn false;}}You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application, and decide to create a delegate named SalaryDelegate to invoke them.You need to ensure that you use the appropriate code to declare the SalaryDelegate delegate.What is the correct line of code?A. public delegate bool Salary (Employee Emp, double Amount);B. public bool Salary (Employee Emp, double Amount);C. public event bool Salary (Employee Emp, double Amount);D. public delegate void Salary (Employee Emp, double Amount);Answer: AQUESTION 22You work as an application developer at Certkiller .com. You have recently created a Windows service application and need to define a Windows service class. What should you do?A. Use the following code:public class TestService : System.ServiceProcess.WindowsService{//Implementation details}B. Use the following code:public class TestService : System.ServiceProcess.IWindowsService{//Implementation details}C. Use the following code:public class TestService : System.ServiceProcess.ServiceBase{//Implementation details}D. Use the following code:public class TestService : System.ServiceProcess.IService{//Implementation details}Answer: CQUESTION 23You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer.This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application:public class EnumerateService : ServiceBase{public static EnumerateService (){this.ServiceName = "Enumerate Service";this.CanStop = true;}protected override void OnStart (string[] args){// Enumerate all services and initialize the FileSystemWatcher}protected override void OnStop (){// Stop the FileSystemWatcher and perform cleanup}public static void Main (){EnumerateService service = new EnumerateService();}}You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?A. Override the OnBoot method instead of the OnStart method.B. Replace the Main method code with the following code:EnumerateService service = new EnumerateService ();Service.Run ();C. Override the OnLoad method instead of the OnStart method.D. Replace the Main method code with the following code:EnumerateService service = new EnumerateService ();Run (service);Answer: DQUESTION 24You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application allows administrators to control Windows services dynamically without using the Services MMC.You start by creating a class named LocalServiceController. You need to add the correct code to the LocalServiceController class to ensure that administrators are able to start local Windows services.What code should you use?A. public static bool StartService (string serviceName){try {ServiceBase.Run (serviceName);return true;}catch{return false;}}B. public static bool StartService (string serviceName){ServiceController controller = new ServiceController (serviceName);if (controller.Status != ServiceControllerStatus.Running){controller.Start ();return true;}elsereturn false;}C. public static bool StartService (string serviceName){ServiceManager manager = new ServiceManager (serviceName);if (manager.Status != ServiceManagerStatus.Running){manager.Start ();return true;}elsereturn false;}。
83 questions by Lorc醤Number: 70-562Passing Score: 700Time Limit: 120 minFile Version: 2010-09-18Exam MCTS 70-562: Microsoft .NET Framework 3.5 - ApplicationDevelopementOriginal File by Nitish:/microsoft/Microsoft.TestKing.70-562.v2010-09-21.by.Nitish.100q.vce.file.htmlCorrections, layout and explanations by LorcánUpdated: 20110316Exam AQUESTION 1You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You create a custom control named OrderForm.You write the following code segment:public delegate void CheckOrderFormEventHandler(EventArgs e);private static readonly object CheckOrderFormKey = new object();public event CheckOrderFormEventHandler CheckOrderForm{add { Events.AddHandler(CheckOrderFormKey, value); }remove { Events.RemoveHandler(CheckOrderFormKey, value); }}You need to provide a method that enables the OrderForm control to raise the CheckOrderForm event.Which code segment should you use?A. protected virtual void OnCheckOrderForm(EventArgs e) {CheckOrderFormEventHandler checkOrderForm =(CheckOrderFormEventHandler)Events[typeof(CheckOrderFormEventHandler)];if (checkOrderForm != null)checkOrderForm(e);}B. protected virtual void OnCheckOrderForm(EventArgs e) {CheckOrderFormEventHandler checkOrderForm =Events[CheckOrderFormKey] asCheckOrderFormEventHandler;if (checkOrderForm != null)checkOrderForm(e);}C. CheckOrderFormEventHandler checkOrderForm = newCheckOrderFormEventHandler(checkOrderFormCallBack);protected virtual void OnCheckOrderForm(EventArgs e) {if (checkOrderForm != null)checkOrderForm(e);}D. CheckOrderFormEventHandler checkOrderForm = newCheckOrderFormEventHandler(checkOrderFormCallBack);protected virtual void OnCheckOrderForm(EventArgs e) {if (checkOrderForm != null)RaiseBubbleEvent(checkOrderForm, e);}Answer: BSection: (none)Explanation/Reference:static readonly object ourKey = new object();public event EventHandler MyEvent{add { Events.AddHandler(ourKey, value); }remove { Events.RemoveHandler(ourKey, value); }}protected void OnMyEvent(EventArgs e){EventHandler aH = Events[ourKey] as EventHandler;if (aH != null)aH(this, e);}QUESTION 2You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You derive a new validation control from the BaseValidator class.The validation logic for the control is implemented in the Validate method in the following manner: protected static bool Validate(string value){// ...}You need to override the method that validates the value of the related control.Which override method should you use?A. protected override bool EvaluateIsValid() {string value =GetControlValidationValue(this.Attributes["AssociatedControl"]);bool isValid = Validate(value);return isValid;}B. protected override bool ControlPropertiesValid() {string value =GetControlValidationValue(this.ValidationGroup);bool isValid = Validate(value);return isValid;}C. protected override bool EvaluateIsValid() {string value =GetControlValidationValue(this.ControlToValidate);bool isValid = Validate(value);return isValid;}D. protected override bool ControlPropertiesValid() {string value =GetControlValidationValue(this.Attributes["ControlToValidate"]);bool isValid = Validate(value);this.PropertiesValid = isValid;return true;}Answer: CSection: (none)Explanation/Reference:When overridden in a derived class, the BaseValidator.EvaluateIsValid method contains the code to determine whether the value in the input control is valid. The methods returns true if thevalue in the input control is valid; otherwise, false.The BaseValidator.GetControlValidationValue method gets the value associated with the specified input control. It takes the name of the input control to get the value from as a string parameter and returns the value associated with the specified input control.The BaseValidator.ControlToValidate property gets/sets the input control to validate. Its type is String.QUESTION 3You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You create a Web page that contains the following two XML fragments:01 <script runat="server">02 ►03 </script>04 <asp:ListView ID="ListView1" runat="server"05 DataSourceID="SqlDataSource1"06 ►07 >08 <ItemTemplate>09 <td>10 <asp:Label ID="LineTotalLabel" runat="server"11 Text='<%# Eval("LineTotal") %>' />12 </td>13 </ItemTemplate>The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The database table has a column named LineTotal.You need to ensure that when the size of the LineTotal column value is greater than seven characters, the column is displayed in red color.What should you do?A. Insert the following code segment at line 06:OnItemDataBound="FmtClr"Insert the following code segment at line 02:protected void FmtClr (object sender,ListViewItemEventArgs e) {Label LineTotal =(Label)e.Item.FindControl("LineTotalLabel");if (LineTotal.Text.Length > 7){ LineTotal.ForeColor = Color.Red; }else{ LineTotal.ForeColor = Color.Black; }}B. Insert the following code segment at line 06:OnItemDataBound="FmtClr"Insert the following code segment at line 02:protected void FmtClr (object sender,ListViewItemEventArgs e) {Label LineTotal =(Label)e.Item.FindControl("LineTotal");if (LineTotal.Text.Length > 7){ LineTotal.ForeColor = Color.Red; }else{ LineTotal.ForeColor = Color.Black; }}C. Insert the following code segment at line 06:OnDataBinding="FmtClr"Insert the following code segment at line 02:protected void FmtClr(object sender, EventArgs e) {Label LineTotal = new Label();LineTotal.ID = "LineTotal";if (LineTotal.Text.Length > 7){ LineTotal.ForeColor = Color.Red; }else{ LineTotal.ForeColor = Color.Black; }}D. Insert the following code segment at line 06:OnDataBound="FmtClr"Insert the following code segment at line 02:protected void FmtClr(object sender, EventArgs e) {Label LineTotal = new Label();LineTotal.ID = "LineTotalLabel";if (LineTotal.Text.Length > 7){ LineTotal.ForeColor = Color.Red; }else{ LineTotal.ForeColor = Color.Black; }}Answer: ASection: (none)Explanation/Reference:<asp:ListView OnItemDataBound="EventHandler" />The ItemDataBound event occurs when a data item is bound to data in a ListView control.The DataBinding event occurs when the server control binds to a data source.The DataBound event ocurs after the server control binds to a data source.The ListViewItemEventArgs.Item property gets the item that is being created or bound to data. The FindControl method searches the current naming container for the specified server control. B: The argument in e.Item.FindControl("LineTotal") is not correct since the Label control ID is "LineTotalLabel"QUESTION 4You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You define the following class:public class Product {public decimal Price { get; set; }}Your application contains a Web form with a Label control named lblPrice.You use a StringReader variable named xmlStream to access the following XML fragment:<Product><Price>35</Price></Product>You need to display the price of the product from the XML fragment in the lblPrice Label control. Which code segment should you use?A. DataTable dt = new DataTable();dt.ExtendedProperties.Add("Type", "Product");dt.ReadXml(xmlStream);lblPrice.Text = dt.Rows[0]["Price"].ToString();B. XmlReader xr = XmlReader.Create(xmlStream);Product boughtProduct =xr.ReadContentAs(typeof(Product), null) as Product;lblPrice.Text = boughtProduct.Price.ToString();C. XmlSerializer xs = new XmlSerializer(typeof(Product));Product boughtProduct = xs.Deserialize(xmlStream) asProduct;lblPrice.Text = boughtProduct.Price.ToString();D. XmlDocument xDoc = new XmlDocument();xDoc.Load(xmlStream);Product boughtProduct = xDoc.OfType<Product>().First();lblPrice.Text = boughtProduct.Price.ToString();Answer: CSection: (none)Explanation/Reference:QUESTION 5You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You create a Web form and add the following code fragment:<asp:Repeater ID="rptData" runat="server" DataSourceID="SqlDataSource1" ItemDataBound="rptData_ItemDataBound"><ItemTemplate><asp:Label ID="lblQuantity" runat="server"Text='<%# Eval("QuantityOnHand") %>' /></ItemTemplate></asp:Repeater>The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products.You write the following code segment to create the rptData_ItemDataBound event handler:01 protected void rptData_ItemDataBound(object sender,02 RepeaterItemEventArgs e)03 {04 ►05 if(lbl != null)06 if(int.Parse(lbl.Text) < 10)07 lbl.ForeColor = Color.Red;08 }You need to retrieve a reference to the lblQuantity Label control into a variable named lbl.Which code segment should you insert at line 04?A. Label lbl = Page.FindControl("lblQuantity") as Label;B. Label lbl = e.Item.FindControl("lblQuantity") as Label;C. Label lbl = rptData.FindControl("lblQuantity") as Label;D. Label lbl = e.Item.Parent.FindControl("lblQuantity") asLabel;Answer: BSection: (none)Explanation/Reference:The RepeaterItemEventArgs.Item property gets the RepeaterItem associated with the event. The FindControl method searches the current naming container for the specified server control. QUESTION 6You create a Microsoft application by using the Microsoft .NET Framework version 3.5. Your application has a user control named UserCtrl.ascx. You write the following code fragmentto create a Web page named Default.aspx:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><html>...<body><form id="form1" runat="server"><div><asp:Label ID="lblHeader" runat="server"></asp:Label><asp:Label ID="lbFooter" runat="server"></asp:Label></div></form></body></html>You need to dynamically add the UserCtrl.ascx control between the lblHeader and lblFooter Label controls.What should you do?A. Write the following code segment in the Init event of the Default.aspxWeb page:Control ctrl = LoadControl("UserCtrl.ascx");this.Controls.AddAt(1, ctrl);B. Write the following code segment in the Init event of the Default.aspxWeb page.Control ctrl = LoadControl("UserCtrl.ascx");lblHeader.Controls.Add(ctrl);C. Add a Literal control named Ltrl between the lblHeader and lblFooterlabel controls.Write the following code segment in the Init event of the Default.aspxWeb page:Control ctrl = LoadControl("UserCtrl.ascx");D. Add a PlaceHolder control named PlHldr between the lblHeader andlblFooter label controls.Write the following code segment in the Init event of the Default.aspxWeb page:Control ctrl = LoadControl("UserCtrl.ascx");PlHldr.Controls.Add(ctrl);Answer: DSection: (none)Explanation/Reference:Anwser A would be ok if the second line was the following:this.form1.Controls.AddAt(2, ctrl);QUESTION 7You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You create two user controls named UserCtrlA.ascx and UserCtrlB.asc x. The user controls postback to the server.You create a new Web page that has the following ASPX code:<asp:CheckBox ID="Chk" runat="server"oncheckedchanged="Chk_CheckedChanged"AutoPostBack="true" /><asp:PlaceHolder ID="PlHolder" runat="server"></asp:PlaceHolder>To dynamically create the user controls, you write the following code segment for the Web page: public void LoadControls(){if (ViewState["CtrlA"] != null){Control c;if ((bool)ViewState["CtrlA"] == true){c = LoadControl("UserCtrlA.ascx");} else {c = LoadControl("UserCtrlB.ascx");}c.ID = "Ctrl";PlHolder.Controls.Add(c);}}protected void Chk_CheckedChanged(object sender, EventArgs e){ViewState["CtrlA"] = Chk.Checked;PlHolder.Controls.Clear();LoadControls();}You need to ensure that the user control that is displayed meets the following requirements:It is recreated during postbackIt retains its state.Which method should you add to the Web page?A. protected override object SaveViewState() {LoadControls();return base.SaveViewState();}B. protected override void Render(HtmlTextWriter writer) {LoadControls();base.Render(writer);}C. protected override void OnLoadComplete(EventArgs e) {base.OnLoadComplete(e);LoadControls();}D. protected override void LoadViewState(object savedState){base.LoadViewState(savedState);LoadControls();}Answer: DSection: (none)Explanation/Reference:The Control.LoadViewState method restores view-state information from a previous page request that was saved by the SaveViewState methodQUESTION 8You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You create the following controls:a composite custom control named MyControl.a templated custom control named OrderFormData.You write the following code segment to override the method named CreateChildControls() in the MyControl class:01 protected override void CreateChildControls()02 {03 Controls.Clear();04 OrderFormData oFData = new05 OrderFormData("OrderForm");06 ►07 }You need to add the OrderFormData control to the MyControl control.Which code segment should you insert at line 06?A. Template.InstantiateIn(this);Controls.Add(oFData);B. Template.InstantiateIn(oFData);Controls.Add(oFData);C. oFData.TemplateControl = (TemplateControl)Template;Controls.Add(oFData);D. this.TemplateControl = (TemplateControl)Template;this.Controls.Add(oFData);Answer: BSection: (none)Explanation/Reference:The ITemplate.InstantiateIn method, when implemented by a class, defines the Control object that child controls and templates belong to. These child controls are in turn defined within an inline template.According to Eilon Lipton's blog, here's the correct way to instantiate a template:public ITemplate MyTemplate { ... }public override void OnPreRender(EventArgs e) {if (MyTemplate != null) {Control templateContainer = new Control();MyTemplate.InstantiateIn(templateContainer);Controls.Add(templateContainer);}}QUESTION 9You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You create a composite custom control named MyControl.You need to add an instance of the OrderFormData control to the MyControl control.Which code segment should you use?A. protected override void CreateChildControls() {Controls.Clear();OrderFormData oFData = new OrderFormData("OrderForm");Controls.Add(oFData);}B. protected override void RenderContents(HtmlTextWriterwriter) {OrderFormData oFData = new OrderFormData("OrderForm");oFData.RenderControl(writer);}C. protected override void EnsureChildControls() {Controls.Clear();OrderFormData oFData = new OrderFormData("OrderForm");oFData.EnsureChildControls();if (!ChildControlsCreated)CreateChildControls();}D. protected override ControlCollectionCreateControlCollection() {ControlCollection controls = newControlCollection(this);OrderFormData oFData = new OrderFormData("OrderForm");controls.Add(oFData);return controls;}Answer: ASection: (none)Explanation/Reference:The Control.CreateChildControls method is called by the page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.Note: When you develop a composite or templated server control, you must override this method. Controls that override the CreateChildControls method should implement the INamingContainer interface to avoid naming conflicts.QUESTION 10You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You add a TextBox control named TextBox1.You write the following code segment for validation:protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args) {DateTime dt = String.IsNullOrEmpty(args.Value) ? DateTime.Now : Convert.ToDateTime(args.Value);args.IsValid = (DateTime.Now - dt).Days < 10;}You need to validate the value of TextBox1.Which code fragment should you add to the Web page?A. <asp:CustomValidator ID="CustomValidator1"runat="server"ControlToValidate="TextBox1"ValidateEmptyText="True"onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator><asp:CompareValidator ID="CompareValidator1"runat="server"Type="Date" EnableClientScript="true"ControlToValidate="TextBox1"Operator="DataTypeCheck"></asp:CompareValidator>B. <asp:CustomValidator ID="CustomValidator1"runat="server"ControlToValidate="TextBox1"ValidateEmptyText="True"onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator><asp:RequiredFieldValidatorID="RequiredFieldValidator1"runat="server" ControlToValidate="TextBox1"InitialValue="<%= DateTime.Now; %>" ></asp:RequiredFieldValidator>C. <asp:CustomValidator ID="CustomValidator1"runat="server"ControlToValidate="TextBox1"ValidateEmptyText="True"onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator><asp:CompareValidator ID="CompareValidator1"runat="server"Type="Date" EnableClientScript="true"ControlToValidate="TextBox1"ValueToCompare="<%= DateTime.Now; %>"></asp:CompareValidator>D. <asp:CustomValidator ID="CustomValidator1"runat="server"ControlToValidate="TextBox1"ValidateEmptyText="True"onservervalidate="CustomValidator1_ServerValidate"></asp:CustomValidator><asp:RequiredFieldValidatorID="RequiredFieldValidator1" runat="server"ControlToValidate="TextBox1"EnableClientScript="false"InitialValue="<%= DateTime.Now; %>"></asp:RequiredFieldValidator>Answer: ASection: (none)Explanation/Reference:The CompareValidator can also be used to verify that the data entered into a given control is of a certain data type, such as a date or a number. To do so, you set the Type property to a valid data type. will then validate that the user’s input can be cast into a valid instance of the given type. If all you intend is a data type check, you can also set the Operator property to DataTypeCheck.If you set the Operator property to DataTypeCheck, the CompareValidator control ignores both the ControlToCompare and ValueToCompare properties and simply indicates whether the value entered into the input control can be converted to the data type specified by the Type property. QUESTION 11You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You add an XmlDataSource control named XmlDataSource1 to the Web page.XmlDataSource1 is bound to an XML document with the following structure:<?xml version="1.0" encoding="utf-8" ?><clients><client ID="1" Name="John Evans" /><client ID="2" Name="Mike Miller"/>...</clients>You also write the following code segment in the code-behind file of the Web page:protected void BulletedList1_Click (object sender, BulletedListEventArgs e) {// ...}You need to add a BulletedList control named BulletedList1 to the Web page that is bound to XmlDataSource1.Which code fragment should you use?A. <asp:BulletedList ID="BulletedList1" runat="server"DisplayMode="LinkButton" DataSource="XmlDataSource1"DataTextField="Name" DataValueField="ID"onclick="BulletedList1_Click"></asp:BulletedList>B. <asp:BulletedList ID="BulletedList1" runat="server"DisplayMode="HyperLink"DataSourceID="XmlDataSource1"DataTextField="Name" DataMember="ID"onclick="BulletedList1_Click"></asp:BulletedList>C. <asp:BulletedList ID="BulletedList1" runat="server"DisplayMode="LinkButton"DataSourceID="XmlDataSource1"DataTextField="Name" DataValueField="ID"onclick="BulletedList1_Click"></asp:BulletedList>D. <asp:BulletedList ID="BulletedList1" runat="server"DisplayMode="HyperLink"DataSourceID="XmlDataSource1"DataTextField="ID" DataValueField="Name"onclick="BulletedList1_Click"></asp:BulletedList>Answer: CSection: (none)Explanation/Reference:DataSource ID, NOT DataSourceYou set the DataTextField to the name of the column that contains the data you wish to display to the user. You set the DataValueField to the column that contains the value(s) you wish to return to the server for a selected item.Set the DisplayMode to LinkButton to display list content as links. Use the BulletedList.Click event to post back to the server when a link button is clicked.Don't set DisplayMode to Hyperlink. When clicked, a hyperlink navigates to a URL and therefore doesn't respond to the BulletedList.Click event!QUESTION 12You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You write the following code fragment:<asp:ListBox SelectionMode="Multiple" ID="ListBox1" runat="server"></asp:ListBox><asp:ListBox ID="ListBox2" runat="server"> </asp:ListBox><asp:Button ID="Button1" runat="server" Text="Button"onclick="Button1_Click" />You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1 control to the ListBox2 control.Which code segment should you use?A. foreach (ListItem li in ListBox1.Items) {if (li.Selected) {ListBox2.Items.Add(li);ListBox1.Items.Remove(li);}}B. foreach (ListItem li in ListBox1.Items) {if (li.Selected) {li.Selected = false;ListBox2.Items.Add(li);ListBox1.Items.Remove(li);}}C. foreach (ListItem li in ListBox1.Items) {if (li.Selected) {li.Selected = false;ListBox2.Items.Add(li);}}foreach (ListItem li in ListBox2.Items) {if (ListBox1.Items.Contains(li))ListBox1.Items.Remove(li);}D. foreach (ListItem li in ListBox1.Items) {if (li.Selected)ListBox1.Items.Remove(li);}foreach (ListItem li in ListBox1.Items) {if (ListBox2.Items.Contains(li))ListBox1.Items.Remove(li);}Answer: CSection: (none)Explanation/Reference:Note: The initial answers were different. Answers C et D were split in 2 sub-answers and you had to choose C and D. I changed the answers in order to match the real exam.QUESTION 13You create a Microsoft application by using the Microsoft .NET Framework version 3.5. You write the following code fragment:<asp:DropDownList AutoPostBack="true" ID="DropDownList1" runat="server" onselectedindexchanged= "DropDownList1_SelectedIndexChanged"><asp:ListItem>1</asp:ListItem><asp:ListItem>2</asp:ListItem><asp:ListItem>3</asp:ListItem></asp:DropDownList>You also add a MultiView control named MultiView1 to the Web page. MultiView1 has three child View controls.You need to ensure that you can select the View controls by using the DropDownList1 DropDownList control.Which code segment should you use?A. int idx = DropDownList1.SelectedIndex;MultiView1.ActiveViewIndex = idx;B. int idx = DropDownList1.SelectedIndex;MultiView1.Views[idx].Visible = true;C. int idx = int.Parse(DropDownList1.SelectedValue);MultiView1.ActiveViewIndex = idx;D. int idx = int.Parse(DropDownList1.SelectedValue);MultiView1.Views[idx].Visible = true;Answer: ASection: (none)Explanation/Reference:ActiveViewIndex property is a zero base index. When set to -1, no View controls are displayed. QUESTION 14You create a Microsoft application by using the Microsoft .NET Framework version 3.5. To add a Calendar server control to a Web page, you write the following code fragment:<asp:Calendar SelectionMode="DayWeek" ID="Calendar1" runat="server"></asp:Calendar>You need to disable the non-week days in the Calendar control.What should you do?A. Add the following code segment to the Calendar1 DayRender eventhandler:if (e.Day.IsWeekend) {Day.IsSelectable = false;}B. Add the following code segment to the Calendar1 DayRender eventhandler:if (e.Day.IsWeekend) {if (Calendar1.SelectedDates.Contains(e.Day.Date))Calendar1.SelectedDates.Remove(e.Day.Date);}C. Add the following code segment to the Calendar1 SelectionChangedevent handler:List<DateTime> list = new List<DateTime>();foreach (DateTime st in (sender asCalendar).SelectedDates) {if (st.DayOfWeek == DayOfWeek.Saturday || st.DayOfWeek== DayOfWeek.Sunday) {list.Add(st);}}foreach (DateTime dt in list) {(sender as Calendar).SelectedDates.Remove(dt);}D. Add the following code segment to the Calendar1 DataBinding eventhandler:。
MIAC微软信息化应用能力认证推广办公室一、单项选择题:10.小王在计算机上使用的用户帐号是管理员帐号,他创建了一个名为“临时雇员”的帐号,那么这个“临时雇员”的用户帐号是默认是属于()组。
A.管理员组AdministratorsB.超级用户组Power UsersC.普通用户组UsersD.来宾组GuestsANSWER: C14.当用户李四登录一台Windows XP Professional SP2计算机后,当他双击控制面板中的“添加硬件”按钮后,出现了如本题图所示的提示,一般地能够说明李四帐号是一个()。
A.普通用户帐号B.管理员帐号,但是被禁用了某些功能C.被禁用的帐号D.超级用户帐号ANSWER: A15.小王经常乘坐火车出差。
在火车上,他需要长时间打开笔记本电脑处理事务。
有个令人头痛的事情是笔记本电脑的电池供电时间总是很短暂。
他向你咨询,有什么办法在不添加或更换电池的情况下,能够延长电池的供电时间,满足其移动办公的需求。
参考本题图选择正确选项()。
A.通过“设备管理器”进行配置B.通过“驱动程序签名”进行配置C.通过“Windows Update”进行配置D.通过“硬件配置文件”进行配置ANSWER: D16.如本题图所示,微软的官方网站上已经有一个针对Windows XP Professional SP2的更新程序包,你应该选择哪个选项尽快到微软官方网站上获取该更新包?A.更改或删除程序B.添加新程序C.添加/删除Windows组件D.设定程序访问和默认值ANSWER: B26.如本题图所示,小王要将“开始→所有程序→Microsoft Office”中Microsoft Office Excel2003按钮放在自己计算机的任务栏上,他应该采取的最佳操作是()。
A.直接将该按钮拖动到目标位置,然后放开鼠标左键B.先按住CTRL键不放,在讲该按钮拖动到目标位置后放开鼠标左键C.右单击该按钮,选择“发送到任务栏”选项D.右单击该按钮,选择“复制”,然后用鼠标单击任务栏目标位置,选择“粘贴”选项ANSWER: B30.一台计算机安装了Windows XP Professional SP2操作系统,有关桌面快捷图标的正确说法是()。
微软认证模拟试题微软认证模拟试题微软认证从1992年设立至今,在业界的影响力也越来越大,全球共计有8万位MCSE2003和3万多位MCSD产生,是具备相当含金量和实用价值的高端证书。
以下是关于微软认证模拟试题,希望大家认真练习!1. 两ISDN adapter, 每个adapter有两B-channel,用dial-up networking连RAS server, RAS server也有两ISDN adaptic, 每个B-channel有自己的`phone number.如何config multilink来使用所有4 个channel.A. create a PhoneBook Entry for each ISDN B-channel connect to RAS server by using all four entries.B. create one phonebook that has the four phone number. connect to the RAS server by using this entries.C. create one PhoneBook Entry for each ISDN adaptic connect to RAS server by using both entries.D. create one PhoneBook Entry that is configed to use multiple lines, Assign a phone number for each line.connect to RAS server by using this entry.答案:D2. 用dialup networking 连NT WS 到PPP server, ISP 要求备份logon to a server 并select a menu option that actives PPP support on the server. 如何配置NT WS , 自动active the ISP 的PPP support?A. create a script, config DUN to run script after dialing.B. config DUN to open a terminal Windows after dialing.C. config DUN to open a terminal Windows before dialing.D. NT WS 4.0 不支持.答案:B3. NT WS map a network drive 到NT server (sales)的report 文件夹, sales通过internet 互联, A. eportsB. \eports.C. /reportsD. /reports答案:B4. NT WS 3.51升级到4.0 在单HPFS下.A. convert to NTFS, 升级B. convert to FAT.C. 升级再convert to NTFSD. 升级不动HPFS.答案:A5. Multilink enabled for 3 modems in NT WS, RAS server用call back,有何影响.A. RAS的server can call back all 3 modems.B. NT WS 自动联3个modem after call back.C. use a separate phonebook entry for each modem.D. 不能用multilink.答案:D6. 安NT WS 无卡, 但需配置协议.A. select MS loopback adpatic, binding 协议到卡.C. select generic NE 2000, ignore any error.答案:C7. 装了不对的卡 driver, 出现blank blue screen without text.A. Restore registry using ER disk.B. using last known good.答案:B8.When you upgrade NT 3.51 to NT 4.0, what should you do?A) Install from NT 4.0 CD-ROM and install NT 4.0 on the same directory of NT 3.51B) Run winnt32.exe under NT 3.51, and install NT 4.0 on the same directory of NT 3.51C) Run winnt32.exe under NT 3.51, and install NT 4.0 on the different directory of NT 3.51D) Install from NT 4.0 CD-ROM and install NT 4.0 the different directory of NT 3.51Answer: A, B9.What is the minimum amount of hard disk space required to install Windows NT Server on an x86-based computer?A) 125MBB) 110MBC) 130MBD) 135MBAnswer: A10.You want to upgrade your Windows NT 3.51 Server to 4.0, preserving the existing configuration settings. What are two ways to perform this upgrade? (Choose two)A) Boot from NT 4.0 setup boot disks. Install the Windows NT 4.0 files in a different directory from the one that contains your NT 3.51 files.B) Boot from the NT 4.0 setup boot disks. Install the windows NT 4.0 files in the directory that contains your NT 3.51 files.C) Start Windows NT 3.51 server. Run Winnt.exe from the command prompt. Install the NT 4.0 files in the directory that contains your NT 3.51 files.D) Start Windows NT 3.51 Server. Run winnt32.exe from the command prompt. Install the Windows NT 4.0 files in the directory that contains your NT 3.51 files.Answer: B, D-11.You want to migrate the files and user accounts froma NetWare server to a Windows NT Server computer. What do you need to install on the Windows NT Server before you can perform the migration?A) RIP for NWLINKB) Gateway Service for NetwareC) SAP agentD) FTPAnswer: B12.Which of the following file system support DOS and Win16 applications, as well as has the read/write operation?A) FATB) NTFSC) HPFSD) CDFSAnswer: A, B13.The operating system files on a Windows NT computer are stored on the:A) SYS: volumeB) Boot partitionC) System partitionD) C: drive always.Answer: B【微软认证模拟试题】。
Framework类库中的“命名空间”是一种()A、类类型B、结构类型C、数据库D、命名规范答2、XML Web服务基于()协议在应用程序之间传输XML消息A .IPB. InternetC.SOAP【简单对象访问协议Simple Object Access Protocol】D. DCOM3、在命令行下使用csc命令编译C#源程序时,可使用()参数来说明程序中引用的其他程序集。
A、/targetB、/outC、/linkresourceD、/reference4、页的默认扩展名是()。
A、ascxB、aspxC、htmlD、asax5、XML Web服务基于()协议在应用程序之间传输XML消息。
A、SOAP【简单对象访问协议】B、IPC、DCOMD、Internet6、某程序集A的版本为:“2.0.1.12”,程序集B版本为:“2.0.0.12”,则按照.NET 版本控制约定,两个程序集的关系为()。
A 、B是A的快速修订版本B、B是A的完全兼容版本C、B是A的可能兼容版本D、B是A的不兼容版本【注意:版本号的顺序为主版本号,次版本号,内部版本号,修订号】7、下列说法是否正确?()引用类型就是所有继承自System.Object的类型。
A、正确B、错误【值类型也继承System.Object】8、请问下列枚举类型MyEnum的定义是否合法?()enum SomeEnum:System.Char{one='1',two='2',three='3',four='4'}A、合法B、不合法【枚举类型不能是System.Char类型】10、类SomeClass的定义如下:class SomeClass{static int i=100;int j=100;static SomeClass(){i++;}}则创建该类的第一个实例后,字段i的值为()。
2022微软认证试卷试题2022微软认证试卷试题一、判断题(共50题,共100分)1.对于企业来说,给用户进行各种促销或者实施运营策略的时机也比较重要,而且对不同兴趣偏好的用户最好集中处理。
2.啤酒与尿布的经典案例,充分体现了实验思维在大数据分析理念中的重要性。
3.简单随机抽样,是从总体N个对象中任意抽取n个对象作为样本,最终以这些样本作为调查对象。
在抽取样本时,总体中每个对象被抽中为调查样本的概率可能会有差异。
4.信息生命周期管理是据生命周期管理的来源,最早由英国企业提出。
5.决策树是一种基于树形结构的预测模型,每一个树形分叉代表一个分类条件,叶子节点代表最终的分类结果,其优点在于易于实现,决策时间短,并且适合处理非数值型数据。
6.在噪声数据中,波动数据比离群点数据偏离整体水平更大。
7.对于大数据而言,最基本、最重要的要求就是减少错误、保证质量。
因此,大数据收集的信息量要尽量精确。
8.一般而言,分布式数据库是指物理上分散在不同地点,但在逻辑上是统一的数据库。
因此分布式数据库具有物理上的独立性、逻辑上的一体性、性能上的可扩展性等特点。
9.具备很强的报告撰写能力,可以把分析结果通过文字、图表、可视化等多种方式清晰地展现出来,能够清楚地论述分析结果及可能产生的影响,从而说服决策者信服并采纳其建议,是数据分析能力对大数据人才的基本要求。
10.谷歌流感趋势充分体现了数据重组和扩展对数据价值的重要意义。
11.奥巴马认为,对大数据的占有与控制,反映的是一个国家的核心能力之大小。
因此,他已经将大数据上升到国家战略高度。
12.移动互联网实现了人人相连、人物相联、物物相连。
13.林雅华博士指出,目前中国的是一个复杂社会,是一个转型社会。
14.《促进大数据发展行动纲要》指出,要加快政府数据开放共享,推动资源整合,提升治理能力。
15.中远物流有100多个配送中心,装GPS的上万辆车每月产生2亿条信息,据此优化运输路线,减排10%。
jw Number: 70-583Passing Score: 800Time Limit: 120 minFile Version: 8.0PrepKing 70-583Exam AQUESTION 1You are designing a Windows Azure application that will store data.You have the following requirements:- The data storage system must support the storage of more than 500 GB of data.- Data retrieval must be possible from a large number of parallel threads without threads blocking each other.You need to recommend an approach for storing data.What should you recommend?A. UseWindowsAzureQueues.B. UseWindows LiveMesh2011.C. Use asingleSQLAzuredatabase.D. UseWindowsAzureTablestorage.Answer: DSection: (none)Explanation/Reference:QUESTION 2You are designing a web service that will be hosted in Windows Azure.The web service will accept and store structured and semi-structured data.The web service must meet the following requirements:- Update all data within a single transaction.- Enforce the data structure for structured data within the data store.You need to recommend an approach for storing the data.What should you recommend?A. UseWindowsAzureQueues.B. Use asingleSQLAzuredatabase.C. Use asingleWindowsAzureDrive.D. UseWindowsAzureTablestorage.Answer: BSection: (none)Explanation/Reference:QUESTION 3You are designing a Windows Azure application that will allow for the processing of image files. Images will be processed in batches by remote applications running on multiple servers.The application must meet the following requirements:- Remain operational during batch-processing operations.- Allow users to roll back each image to previous versions.Each remote application must have exclusive access to an image while processing it.You need to recommend an approach for storing the images.What should you recommend?A. Storetheimagesin aWindows AzureQueue.B. StoretheinWindows AzureBlobstorage.C. StoretheimagesinWindows AzureTablestorage.D. Storeimagesin asingleWindows AzureDriveattached to thewebrole.Answer: BSection: (none)Explanation/Reference:The Blob service stores text and binary data. The Blob service offers the following three resources: the storage account, containers, and blobs. Within your storage account, containers provide a way to organize sets of blobs.You can store text and binary data in either of two types of blobs:Block blobs, which are optimized for streaming.Page blobs, which are optimized for random read/write operations and which provide the ability to write to a range of bytes in a blob.QUESTION 4You are designing a strategy for synchronizing a SQL Azure database and multiple remote Microsoft SQL Server 2008 databases.The SQL Azure database contains many tables that have circular foreign key relationships. You need to recommend an approach for ensuring that all changes in the remote databases synchronize with the SQL Azure database.What should you recommend?A. UseSQLDataSyncService.B. UseSQLServerreplication.C. UseSQLServerbackupandrestore.D. UseSQLServerdatabasesnapshots.Answer: ASection: (none)Explanation/Reference:QUESTION 5You are designing a Windows Azure application.The application will include occasionally connected clients that reference data stored in Windows Azure Blob storage.The clients will be able to add data while disconnected.You need to recommend an approach for synchronizing offline client data with Windows Azure Blob storage.What should you recommend?A. UseSQLAzureDataSync.B. Use theMicrosoft SyncFramework.C. UseWindows AzureBlobesnapshots.D. Use theMicrosoft SQLServerreplicationcomponent.Answer: BSection: (none)Explanation/Reference:QUESTION 6You are designing a strategy for synchronizing two geographically disparate SQL Azure databases.A database named DB1 is located in North America.A database named DB2 is located in Asia.DB2 contains a subset of the tables in DB1.You need to recommend an approach for bidirectionally synchronizing the databases each day.What should you recommend?A. UseSQLAzureDataSync.B. UsecustomMicrosoft SyncFrameworkmetadata.C. Use aMicrosoft SyncFrameworkPartialParticipant.D. Use aMicrosoft SyncFrameAnswer: ASection: (none)Explanation/Reference:QUESTION 7You are planning the deployment of a SQL Azure database.Your company has a Volume Licensing Agreement for Microsoft SQL Server 2008.The SQL Azure database must maintain a monthly availability of 99.9%.You need to recommend an approach for minimizing the monthly expenses associated with the SQL Azure database.What should you recommend?A. Add aprocessorlicenseto theexistingSQLServerlicensingagreement.B. Purchase aWindows Azureconsumptionplatformsubscription.C. Purchase aSQLServerServicesProviderLicensingAgreem(SPLA).D. Purchase aSQLServerWeblicensetoextendtheexistingSQLServerlicensingagreement.Answer: BSection: (none)Explanation/Reference:QUESTION 8You are designing a Windows Azure solution.The solution will be used by multiple customers.Each customer has different business logic and user interface requirements. Not all customers use the same version of the .NET runtime.You need to recommend a deployment strategy.What should you recommend?A. Deployin amultitenantconfiguration.B. Deployin asingle-tenantconfiguration.C. Deploywithmultiple webroleinstances.D. Deploywithmultipleworkerroleinstances.Answer: BSection: (none)Explanation/Reference:QUESTION 9You are designing a Windows Azure application that will provide online backup storage for very large media files.The application must be capable of storing an average of 1 GB of data for each user.The application must provide random read/write access.You need to recommend a durable data storage solution.What should you recommend?A. Use aWindows AzureDrive.B. UseWindows Azurepageblobstorage.C. UseWindows Azureblockblobstorage.D. Uselocalstorageon aWindows Azureinstance.Answer: BSection: (none)Explanation/Reference:The Blob service stores text and binary data. The Blob service offers the following three resources: the storage account, containers, and blobs. Within your storage account, containersprovide a way to organize sets of blobs.You can store text and binary data in either of two types of blobs:Block blobs, which are optimized for streaming.Page blobs, which are optimized for random read/write operations and which provide the ability to write to a range of bytes in a blob.QUESTION 10You are designing a plan to migrate Microsoft SQL Server 2008 databases to SQL Azure.You do not plan to migrate the SQL Server databases to SQL Server 2008 R2.You need to recommend an approach for performing bulk data transfers from the SQL Server databases to SQL Azure.What should you recommend?A. Use thebcputility.B. Use thedtautility.C. Use theSQLServerImportandExportWizard.D. AttacheachSQLServerdatabase toSQLAzure.Answer: ASection: (none)Explanation/Reference:The bcp utility bulk copies data between an instance of Microsoft SQL Server and a data file in a user-specified format. The bcp utility can be used to import large numbers of new rows into SQL Server tables or to export data out of tables into data files. Except when used with the queryout option, the utility requires no knowledge of Transact-SQL. To import data into a table, you must either use a format file created for that table or understand the structure of the table and the types of data that are valid for its columns.QUESTION 11You are designing a plan for migrating an existing Microsoft SQL Server 2008 database to SQL Azure.The database includes a SQL Server Agent job that cleans the application log table.You need to recommend an approach for ensuring that the SQL Server Agent job continues to run without modification.What should you recommend?A. Use theSQLAzureDataSyncservice.B. Run theSQLServerAgentin SQLAzure.C. UseSQLServerIntegrationServices(SSIS)toconnectto SQLAzure.D. Connect theexistingon-premiseSQLServerAgentjobs toSQLAzure.Answer: DSection: (none)Explanation/Reference:SQL Azure Database does not support SQL Server Agent or jobs. You can, however, run SQL Server Agent on your on-premise SQL Server and connect to SQL Azure Database. QUESTION 12You are planning the migration of an existing application to Windows Azure and SQL Azure. The current application includes reports that are hosted by SQL Server Reporting Services. You need to recommend an approach for migrating the reports.What should you recommend?A. UseSQLAzureto hostclientreportdefinitions.B. UseSQLAzureto hostserverreportdefinitions.C. UseWindowsAzureto hostclientreportdefinitions in anASP.NETwebpage.D. UseWindowsAzureto hostserverreportdefinitions in anASP.NETwebpage.Answer: CSection: (none)Explanation/Reference:QUESTION 13You are planning to move streaming media content to Windows Azure Storage.You need to recommend an approach for providing worldwide users the fastest possible access to the content.Which two actions should you recommend?(Each correct answer presents part of the solution. Choose two.)A. Use aSharedAccessSignature.B. UseWindows Azurepageblobstorage.C. UseWindows Azureblockblobstorage.D. Use theWindows AzureContentDeliveryNetwork(CDN).Answer: CDSection: (none)Explanation/Reference:You can store text and binary data in either of two types of blobs:Block blobs, which are optimized for streaming.Page blobs, which are optimized for random read/write operations and which provide the ability to write to a range of bytes in a blob.Windows Azure provides the Windows Azure Content Delivery Network (CDN) to deliver Windows Azure Blob content. Windows Azure CDN offers developers a global solution for delivering high-bandwidth content.The benefit of using a CDN is better performance and user experience for users who are farther from the source of the content stored in the Windows Azure blob storage.QUESTION 14You are designing a plan for migrating Virtual Hard Disks (VHDs) and video files to Windows Azure Storage.The VHDs must be optimized for random read/write operation.The video files must be optimized for sequential access.You need to recommend storage types for storing the VHDs and video files.Which two storage types should you recommend?(Each correct answer presents part of the solution. Choose two.)A. StoreVHDsinWindows Azurepageblobstorage.B. StoreVHDsinWindows Azureblockblobstorage.C. Storevideofiles inWindows Azurepageblobstorage.D. Storevideofiles inWindows Azureblockblobstorage.Answer: ADSection: (none)Explanation/Reference:You can store text and binary data in either of two types of blobs:Block blobs, which are optimized for streaming.Page blobs, which are optimized for random read/write operations and which provide the ability to write to a range of bytes in a blob.After you create or change the server image, you are ready to upload the .vhd file that contains the image data to Windows Azure. There are two opportunities for uploading VHDs to Windows Azure. When you initially create a VM role, you upload a base VHD to Windows Azure, which is used as a template to create VM role instances.QUESTION 15You are designing a Windows Azure application that will use Windows Azure Table storage. The application will allow teams of users to collaborate on projects.Each user is a member of only one team.You have the following requirements:- Ensure that each user can efficiently query records related to his or her team's projects.- Minimize data access latency.You need to recommend an approach for partitioning table storage entities.What should you recommend?A. Partition byuser.B. Partition byteam.C. Partition byproject.D. Partition by thecurrentdate.Answer: BSection: (none)Explanation/Reference:QUESTION 16You are designing a Windows Azure application that will use Windows Azure Table storage. You need to recommend an approach for minimizing storage costs.What should you recommend?A. UseEntityGroupTransactions.B. Usemultiplepartitions tostoredata.C. Use atransactionscopetogroupstorageoperations.D. UseMicrosoftDistributedTransactionCoordinator(MSDTC).Answer: ASection: (none)Explanation/Reference:The Table service supports batch transactions on entities that are in the same table and belong to the same partition group. Multiple Insert Entity, Update Entity, Merge Entity, Delete Entity, Insert Or Replace Entity, and Insert Or Merge Entity operations are supported within a single transaction.You can perform entity group transactions either via REST or by using the .NET Client Library for WCF Data Services.oderMinimize the cost of storage by storing the large files in Windows Azure Table Storage versus SQL Azure (though BLOB storage is preferred for files)oderThe Microsoft Distributed Transaction Coordinator (MS DTC) is a transaction manager that allows client applications to include several different sources of data in one transaction. MS DTC coordinates committing the distributed transaction across all the servers enlisted in the transaction.QUESTION 17You are designing an application that will use Windows Azure Table storage to store millions of data points each day.The application must retain each day's data for only one week.You need to recommend an approach for minimizing storage transactions.What should you recommend?A. Use aseparate tableforeachdate.Deleteeachwhen itis oneweekold. B. Use aseparate tableforeachweek.Deleteeachtablewhen itis oneweekold. C. Use asingletable,partitioned bydate.UseEntityGroupTransactionstodeletedatawhen itis oneweekold. D. Use asingletable,partitioned byweek.UseEntityGroupTransactionstodeletedatawhen itis oneweekold.Answer: ASection: (none)Explanation/Reference:QUESTION 18An application connects to a SQL Azure database.The application occasionally loses the connection to the SQL Azure database.You need to recommend an approach for reliably completing data access operations. What should you recommend?A. UseMicrosoftADO.NETconnectionpooling.B. Passexceptions totheuserinterface layer.C. Implement aretrypolicyin thedataaccesslayer.D. Beginatransactionbeforeeachdataaccessoperation.Answer: CSection: (none)Explanation/Reference:QUESTION 19You are designing a Windows Azure application that will store data in two SQL Azure databases. The application will insert data in both databases as part of a single logical operation.You need to recommend an approach for maintaining data consistency across the databases. What should you recommend?A. Executedatabase callsonparallelthreads.B. Wrapthedatabase callsin asingletransactionscope.C. UseMicrosoftDistributedTransactionCoordinator(MSDTC).D. Handleerrorsresulting fromthedatabase callsbyusingcompensatorylogic.Answer: DSection: (none)Explanation/Reference:QUESTION 20A Windows Azure application stores data in a SQL Azure database.The application will start an operation that includes three insert statements.You need to recommend an approach for rolling back the entire operation if the connection to SQL Azure is lost.What should you recommend?A. Ensurethat allstatementsexecute in thesamedatabasetransaction.B. Createastoredprocedure inthedatabase thatwrapstheinsertstatements in aTRYCATCHblock.C. Createastoredprocedure inthedatabase thatwrapstheinsertstatements in aTRANSACTIONblock.D. Open anewconnection tothee.Use aseparatetransactionscopeto rollbacktheoriginaloperation.Answer: ASection: (none)Explanation/Reference:QUESTION 21An application uses Windows Azure Table storage.The application uses five tables.One table used by the application is approaching the limit for storage requests per second. You need to recommend an approach for avoiding data access throttling.What should you recommend?A. Use asinglepartitionkey forthetable.B. Compressdatabeforestoringit in thetable.C. Createadditionalpartitionkeysfor thetable.D. Continuallyremoveunnecessarydatathetable.Answer: CSection: (none)Explanation/Reference:QUESTION 22A Windows Azure application retrieves data from SQL Azure.You need to recommend an approach for improving application query performance. What should you recommend?A. Createadatabase viewtoretrievethedata.B. Use aclusteredindexon theSQLAzuredatabasetables.C. Open anewdatabaseconnectionwhenanoperationtimesout.D. CreateSQLAzuredatabase tableindexesbasedonapplicaqueries.Answer: DSection: (none)Explanation/Reference:QUESTION 23You are planning the migration of a Microsoft SQL Server 2008 data base to SQL Azure.You need to recommend an approach for ensuring that database connect ivity does not degrade. Which two actions should you recommend?(Each correct answer presents part of the solution. Choose two.)A. Implementtransactionsfordatabasequeries.B. Closedatabaseconnections intheapplication.C. UseMicrosoftADO.NET inthedataaccesslayer.D. Implement aretrypolicyin thedataaccesslayer.Answer: BDSection: (none)Explanation/Reference:QUESTION 24You are designing a Windows Azure application.The application includes a web role and a worker role that communicate by using a Windows Azure Queue.The worker role processes each message within 10 seconds of retrieving it from the queue. The worker role must process each message exactly one time.If a process does not complete, the worker role must reprocess the message.You need to recommend an approach for the worker role to manage messages in the queue. What should you recommend?A. Process themessage andthendeleteit fromthequeue.B. Deletethemessage fromthequeuewhenretrieving themessage.C. Set thevisibilitytimeout of themessage to 1whenretrieving themessage.D. Process themessage andthen setthevisibilitytimeout of thee to themaximumvalue.Answer: ASection: (none)Explanation/Reference:QUESTION 25You are designing a Windows Azure application.The application includes two web roles and three instances of a worker role.The web roles will send requests to the worker role through one or more Windows Azure Queues. You have the following requirements:- Ensure that each request is processed exactly one time.- Minimize the idle time of each worker role instance.- Maximize the reliability of request processing.You need to recommend a queue design for sending requests to the worker role.What should you recommend?A. Createasinglequeue.Sendrequests on thesinglequeue.B. Createaqueueforeachwebrole.Sendrequests on allqueuesat thesametime.C. Createaqueueforeachworkerinstance.Sendrequests oneachworkerqueuein aroundrobin.D. Createaqueueforeachcombinationof webrolesandworkerroleinstances.Sendrequests to allworkerroleinstancesbasedon thesendingwebrole.Answer: ASection: (none)Explanation/Reference:QUESTION 26You are designing a Windows Azure application that will process images.The maximum size of an image is 10 MB.The application includes a web role that allows users to upload images and a worker role with multiple instances that processes the images.The web role communicates with the worker role by using a Windows Azure Queue.You need to recommend an approach for storing images that minimizes storage transactions. What should you recommend?imagesin thequeue.B. StoreimagesinWindows AzureBlobstorage.Storereferences totheimagesin thequeue.C. Storeimagesin localstorage onthe webroleinstance.Storereferences totheimagesin thequeue.D. StoreimagesinWindows AzureDrivesattached to theworkerroleinstances.Storereferences totheimagesin thequeue.Section: (none)Explanation/Reference:You can store text and binary data in either of two types of blobs:Block blobs, which are optimized for streaming.Page blobs, which are optimized for random read/write operations and which provide the ability to write to a range of bytes in a blob.QUESTION 27You are developing a Windows Azure application in which a web role and worker role will communicate by using a Windows Azure Queue.You need to recommend an approach for ensuring that the worker role does not attempt to process any message more than three times.What should you recommend?A. Appropriatelyhandlepoisonmessages.B. Decrease thevisibilitytimeout formessages.C. Reduce thetime-to-liveintervalformessages inthequeue.D. Increase thenumber ofworkerroleinstancesreadingmessages fromthequeue.Answer: ASection: (none)Explanation/Reference:Poison message support Yes YesTo find “poison” messages in Windows Azure Queues, when dequeuing a message the application examines the DequeueCount property of the message. If DequeueCount is above a given threshold, the application moves the message to an application-defined “dead letter” queue. QUESTION 28You are designing a Windows Azure application.The application includes processes that communicate by using Windows Communications Foundation (WCF) services.The WCF services must support streaming.You need to recommend a host for the processes and a WCF binding.Which two actions should you recommend?(Each correct answer presents part of the solution. Choose two.)A. Hosttheprocesses inwebroles.B. Hosttheprocesses inworkerroles.C. UseNetTcpBinding fortheWCFservices.D. UseWSHttpBinding fortheWCFservices.Answer: BCSection: (none)Explanation/Reference:The easiest way to use net.tcp:// port sharing in your Windows Communication Foundation (WCF) application is to expose a service using the NetTcpBinding.This binding provides a PortSharingEnabled property that controls whether net.tcp:// port sharingis enabled for the service being configured with this binding.The following procedure shows how to use the NetTcpBinding class to open an endpoint at the Uniform Resource Identifier (URI) net.tcp://localhost/MyService, first in code and then by using configuration elementsWebrolle – Eine Webrolle ist eine für die Webanwendungsprogrammierung angepasste Rolle, die von Internetinformationsdiensten und unterstützt wird. Ein Vorteil bei der Verwendung dieses Rollentyps besteht darin, dass Sie die IIS-Konfiguration nicht vornehmenmüssen. Diese Rolle wird am besten zum Bereitstellen eines webbasierten Front-End für den gehosteten Dienst verwendet. Sie ist nicht für Prozesse mit langer Laufzeit geeignet. Weitere Informationen zu Webrollen finden Sie unter Overview of the Web Role.Workerrolle – Bei einer Workerrolle handelt es sich um eine Rolle, die für die allgemeine Entwicklung nützlich ist und Hintergrundprozesse für eine Webrolle ausführen kann. Wenn Sie Hintergrundprozesse mit langen oder periodischen Aufgaben ausführen müssen, sollten Sie diese Rolle verwenden. Weitere Informationen zu Workerrollen finden Sie unter Developing a Background Service.QUESTION 29You are designing a Windows Azure web application that does not use .The application requires a standalone Win32 interpreter.You need to recommend an approach for allowing access to the interpreter.What should you recommend?A. Use awebrole.Configure theinterpreter asanISAPIfilter.B. Use awebrole.Configure aFastCGIhandlerfor theinterpreter andset thepath totheinterpreter.C. Use aworkerrolewith aninternalendpoint.Enablenativecodeexecution.D. Use aworkerrolewith anexternalendpoint.Configure aFastCGIhandlerfor theinterpreter andset thepath totheroot.Answer: BSection: (none)Explanation/Reference:The Web Role is similar to a …Web Application‟– it has aspx pages and code behinds, but can also server anything that uses the http protocol, such as a WCF service using basicHttpBinding. The Web Role is driven by UI – the user interacts with a web page or service and this causes some processing to happen. As far as I can tell, the http pipeline is very similar to standard requests. Just think of it as a good old web application.The Worker Role is similar to a windows service. It starts up and is running all the time. Instead of a timer, it uses a simple while(true) loop and a sleep statement. When it …ticks‟ it performs some kind of maintenance work. This is great for background processing.Webrolle – Eine Webrolle ist eine für die Webanwendungsprogrammierung angepasste Rolle, die von Internetinformationsdiensten und unterstützt wird. Ein Vorteil bei der Verwendung dieses Rollentyps besteht darin, dass Sie die IIS-Konfiguration nicht vornehmenmüssen. Diese Rolle wird am besten zum Bereitstellen eines webbasierten Front-End für den gehosteten Dienst verwendet. Sie ist nicht für Prozesse mit langer Laufzeit geeignet. Weitere Informationen zu Webrollen finden Sie unter Overview of the Web Role.Workerrolle – Bei einer Workerrolle handelt es sich um eine Rolle, die für die allgemeine Entwicklung nützlich ist und Hintergrundprozesse für eine Webrolle ausführen kann. Wenn Sie Hintergrundprozesse mit langen oder periodischen Aufgaben ausführen müssen, sollten Sie diese Rolle verwenden. Weitere Informationen zu Workerrollen finden Sie unter Developing a Background Service.Windows Azure supports the Internet Information Server (IIS) 7.0 FastCGI module, so that。