![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions You use Visual Basic to create a COM DLL project hat contains an ActiveX control named Car View and a class module named sales. You are debugging the interaction between the ActiveX control and a host container. During a debugging session, you want to examine the contents of variables that are only in Car View. How can you accomplish this?A. Set the module context in the Add Watch dialog box to Car View. B. Set the instancing property of sales to private. C. St the public property of Car View to Answer: A. You create a Visual Basic application that uses the Microsoft Internet Explorer object model. You include the following code in the General Declarations sections of a form-level module: Private oIE As new Internet Explorer.When will Visual Basic instantiate this object? A. When the form is loaded. B. When the form is displayed on the screen. C. When the declaration is executed. D. When the object is first referenced in your code. Answer: D. You use Visual Basic to develop a reusable component. To make classes in your project easier to use, You use Visual Basic to develop a reusable component. To make classes in your project easier to use, you intend to add descriptive text and context-sensitive help for each of the properties, methods, and events in the classes. Which procedure must you follow to add descriptive Help information for each class? A. Open the code Window for the class module. In the procedure Attributes dialog box, enter a description and a HelpcontextID for each procedure. B. Open the code Window for the class module. Answer: A. You are asked to use Visual Basic to create a Human Resources application that will maintain, among other things, employee information. In designing application, you delete to encapsulate the business logic into a COM EXE named HRManager.exe. Within the user interface portion of your application, you want to create an instance of the Employee object exposed by HRManager.exe Which two code fragments will instantiate an Employee object variable? (Choose two) A. Set oEmployee = New HRManager.Employee Answer: A, B. You decide to use a remote server component in your Visual Basic application. You create an installation routine by using the package and deployment wizard. You want to place an entry in the Setup.lst file to mark the appropriate file as a remote server component and specify the connection information. Under which section within the Setup.lst file must you make these changes? A. The setup section. B. The Setup1 Files section. C. The BootStrap section. D. The BootStrap Files section. Answer: B 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 compile a Visual Basic application into an .exe file. You will use the package and deployment wizard to distribute the application. What must you do to the application before you can successfully deploy it by using the Package and Deployment Wizard? A. Compress the application into one or more .cab files. B. Assign the application a version number in the registry. C. Create a package by using the package and deployment wizard. D. Assign the application an .lpk file. Answer: C. You create a Visual Basic ActiveX control that you want to distribute on internet Web pages. You want your control to automatically install from your web site to a client computer. What should you do?A. Create a .cab file by using the package and deployment wizard. Compress the .cab file, and transfer it to your server by using FTP. B. Create an .exe file by using the package and deployment wizard. Transfer it to your Web server by using FTP. C. Create a single .cab file by using the package and Answer: C. You create a Visual Basic application that you want to distribute on CD-ROM. You want the setup application to automatically execute when users insert the CD-ROM into their CD-ROM drives. How can you accomplish this? A. Add an Autorun.inf file to the root directory of the CD-ROM. B. Make sure the setup application is named Autorun.exe. C. Add the line Autorun=1 to the project .inf file produced by the Package and deployment wizard. D. Add the name of your setup application to the startup section 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.
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||