Microsoft 70-015: Dump for certification exam Microsoft 70-015
#1. You write an out-of-process COM component that manages a database. You want the COM component to limit to five the number of database connections at any one time. When all five of the allocated connections are being used, any client application that requests a database connection must wait for a database connection to become available. Otherwise, that client application should time out after fiwe seconds. Which mechanism should you use to ensure that only five database connections are used at any one time?
#2. You are writing a Win32 MFC based client application. You want to write the application settings to the registry on a per-user basis so that, the next time the application is started, it can read all of the previous settings and initialize itself appropriately. Which code fragment should you use?
#3. You develop an MFC application that is based on the Document/View architecture. When the user makes changes to the document, you want all of the associated views of the document to be refreshed?
#4. You write a client application that communicates with a database via middle-tier components. The client application prompts the user for a user name and for a password by way of an authentication dialog box. You want the user to be authenticated only when the user clicks the OK button in the authentication dialog box. Which code fragment will meet this requirement?
#5. You are implementing a COM component named Test by using ATL. The COM component will be hosted in an out-of-process server. The .idl file in the project looks like this:
When you attempt to use the ITest interface of a COM component in an application, you receive an error message that states that the interface is not supported. What must you do to eliminate this error?
#6. You design an application that accesses a Microsoft SQL Server database. The company that uses this application wants to keep track of the number of times that the application is run. The database contains a one-row table named Statistics. The Statistics table contains a column named UsageCount. You use ADO to access the database. In your StdAfx.h file, you import the ADO Type Library by using an #import statement. You must update the Statistics table by incrementing the value in the UsageCount field. The update must occur only once for each invocation of the application. How should you write the ADO code to perform the update?
#7. You want to use Stirling Software's InstalSHILD software, which is shipped with Visual C++ 6.0, to create a setup application for your product. Which three functionalites does InstallSHIELD for Visual C++ 6.0 allow? (Choose three)
#8. You are planing to develop a Microsoft Windows NT service that will communicate with other computers on a network by using RPC. Your service will not use COM, and it will not have a user interface. Which library or libraries should you use to develop the service?
#9. You want to be able to initialize your ATL ActiveX control from a Web page. You decide to implement the "IPersistPropertyBag" interface.What must you do to add "IPersistPropertyBag" functionality to your ATL object?
#10. You implement a Microsoft Transaction Server (MTS) component. You add the component to an MTS package named Reports. You must ensure that the component can be accessed by remote client applications at all times. How must you accomplish this?