![]() Related Questions You use Visual Basic to create a form with an ADO Data control named ADODC1 and a TextBox control named Text1. The TextBox control must be bound every time the form is loaded. You want to dynamically bind data from the CustomerID field to be displayed in the text box. Which code fragment can you use to accomplish this? A. Set Text1.DataSource= "ADODC1" Text1.DataField = "CustomerID" B. Set Text1.DataSource= ADODC1Set Text1.DataField = "CustomerID" C. Text1.DataSource= Answer: D. You want to use Visual Basic to package and deploy your ActiveX control. You also want to restrict the use of your control at design time to authorized developers only. How can you do this?A. Before compiling your control, set the version Compatibility option to No Compatibility. B. Using the package and deployment Wizard, digitally sign your ActiveX control. C. Include licensing with your ActiveX control. D. Set your ActiveX control to read-only. Answer: C. You create a multi-user Visual Basic application that interacts with a database. You are using ADO and need an updatable, disconnected recordset. You need to offer users the ability to add, update, and modify records. What must you do to accomplish this? A. Set the CursorType property to adOpenStatic, and set the LockType property to adLockBatchOptimistic. B. Set the CursorType property to adOpenDynamic, and set the LockType property to adLockPessimitic. C. Set the CurcorType property to adOpenDynamic Answer: A. You are using Visual Basic to create an ActiveX control that you want to distribute to other developers. You want to add an About box to your control to show your e-mail address. How can you implement this About box so that it is available in the Properties Window?A. Add a new property page to your control project. Name this page in the Connect Property Pages dialog box. B. Add a new form to your control project. Create a public procedure to show the form, and set its procedure ID to About Box. Answer: B. You are working on a Visual Basic application that displays summary information about files on your computer. This application is split into a COM server and a COM client, both written in Visual Basic. After compiling both the server and the client, you discover an error in your server code. You correct the error and recompile the server. When you run the client, you receive an error message stating; "Class does not support Automation or does not support expected interface." Which two Answer: B, C. Your Visual Basic application uses a middle-tier business object to store inventory information in a Your Visual Basic application uses a middle-tier business object to store inventory information in a database. The middle-tier object can be created on the same computer as the calling program, or on a remote computer by using DCOM. One of the business rules implemented by this object is that the inventory for an item can never be negative. How should the object inform the user interface when this business rule is broken?A. By using the MsgBox function to show a message to the user. B. By using Answer: B. Tags : Business Rules You are using Visual Basic to create a COM DLL. This COM DLL provides customer information to other applications for your company. The COM DLL exposes a customer object with properties representing all information that is needed by these other applications. Internally, your COM DLL uses an object named Row to retrieve customer information from a Microsoft SQL Server database. For increased speed in data access, your customer object exposes a property named Bookmark that can hold a recordset bookmark. Answer: C. You use Visual Basic to create an ActiveX control named MyGrid. Many developers use MyGrid on form in their projects. You have identified some problems in MyGrid and are fixing the bugs. You do not want MyGrid users to need to recompile their projects in order to use the newer version of MyGrid. What must you select in the MyGrid Project Properties dialog box to achieve this?A. Project Compatibility B. Binary Compatibility C. Auto Increment D. No Compatibility Answer: B. You use Visual Basic to develop a COM component. You want this component to run without any user interaction. However, when you view the project Properties dialog box, you find that the Unattended Execution check box is dimmed. What must you change in your project to ensure that the Unattended Execution check box is enabled? A. Remove all form objects from your project. B. Remove all MsgBox statements from the code in your project. C. Remove all ActiveX controls from your project. Answer: A. You develop a Visual Basic application that contains a class module named Notify. You want tour application to asynchronously communicate with a COM component named CCVerify. This component supplies credit card verification services to many applications. Each of the client applications will have its own implementation of the Notify class. Each client contains a reference to the CCVerify component, which exposes a Notify interface for this class. To enable this communication, a reference Answer: A.
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||