This site is 100% ad supported. Please add an exception to adblock for this site.

VB Desktop 6

Terms

undefined, object
copy deck
Within a VB procedure, you write error handling code to specifically trap and react to error number 31001, You need to test the effectiveness of the error handling. Which line of code will simulate error 31001?
A. Err.Raise 31001
B. Debug.Asser
Answer: A
Cindy has been instructed to copy the current Visual Basic project files and ActiveX controls from the network to a new computer at her desk. After the files have been copied, she installs and runs Visual Basic. However, when she opens one of the project
Answer: B
You want to deploy a Windows application in a large organization. What must users do to install your application on their computers?
A. Have users connect to a Web Page that hosts the main setup program for the application setup.exe.
B. Have
Answer: B
Your VB application uses a COM component. The COM component will communicate with your application by calling a method of one of your applications objects. What should your application do to enable this type of communication?
A. create an object, a
Answer: B
Which two characteristics of services should influence you to implement them as out-of-process COM components? (choose two)
A. The service involves lengthy calculations or report generation.
B. The service requires frequent interaction with the
Answer: A, D

You are using Visual Basic to design a COM component that will allow the user to enter an IP address in the format nnn.nnn.nnn.nnn. This component will be used as part of a form by many applications within your company. The component must encapsula
Answer: D
The iUnknown interface is the primary interface from which all COM interfaces must be derived. Which member functions are exposed by the iDispatch interface in addition to those exposed by iUnknown?



Answer: Invoke, GetIDsOfNames, GetTypelnfo, GetTypeInfoCount
You implement error-handling code in a Visual Basic application. You specifically write code to trap for a division by zero. You are debugging the application in the IDE, the application interrupted when a division by zero error is raised. How can you re
Answer: A
Which type of version compatibility does this paragraph describe?
Visual Basic preserves the type library information from the previous version. Components that currently use an earlier version will continue to work.
A. Binary Compatibility <
Answer: A

Your Visual Basic application contains a form named Forml. Forml contains a StatusBar control named MyBar that consists of five Panel objects. Which line of code will display the text Please Wait ...in the second Panel object of this control?
Answer: B
How do you declare an object variable z to sync events from a COM component called ServerE?
A. Dim Event z as ServerE
B. Dim WithEvents z as ServerE
C. Dim z as New ServerE
D. Dim z as ServerE

Answer: B
You are design a VB application that will facilitate the billing process for hospitals. The billing calculations performed by the application are based on laws that are likely to change in the future. When these laws change, you will need an easy way to
Answer: A
You create an ActiveX control that display a graph depicting distribution. You want to be able to place this control on a form in your VB project. What must you do?
A. Add the control to the toolbox by using the components dialog box for the project
Answer: A
COM clients that use this COM DLL must be able to retrieve information on the service objects, but should not be able to create new service objects. Internally, the COM DLL maintains a pool of service objects and uses them to provide information as neces
Answer: B
You are placing a Toolbar control on your VB form. You want to specify a different action for each toolbar button. Which select case statement should you use in the buttonclick event handler to specify each action?
A. select case button.click
B
Answer: B
You want to create a Visual Basic class. You want each instance of the class to represent a record in a database table. How can you accomplish this?
A. Create a new Visual Basic project based on the Data Project template. Set the ConnectionSource pr
Answer: D
You use VB 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 ad
Answer: A
How do you display a Pop Up menu mnuPopUp on Form1 in an application?
A. Form1.mnuPopUp.Show
B. Form1.PopUpMenu "mnuPopUp"
C. Form1.PopUpMenu mnuPopUp
D. Form1.Menu.Show "mnuPopUp"



Answer: C


You create a VB application that uses the MS IE object model. You include the following code in the general declarations section of a form-level module.
private olE as New InternetExplorer
When will vb instantiate this object?
Answer: D

Your component is run but there is an error on the server side. The error is corrected and rerun. This time there is an error on the client side. What do you do?
A. Recompile client side using binary compatibility
B. Recompile server side usi
Answer: A
You use VB to create a form with an ADO Data control named ADODCl and a TextBox control named Textl. The TextBox control must be bound every time the form is loaded. You want to dynamically bind data from the CustomerlD field to be displayed in the text
Answer: D
The main form in your VB application contains a commandbutton control named cmdExit. The command button is used to close any open database connections and exit the entire application. If the user attempts to end the current MS windows session without usi
Answer: D
You want to deploy an internet application in a large organization. How is this best done?
A. Have users connect to a Web Page that hosts the main setup program for the application setup.exe
B. Have users run the main setup program for your a
Answer: C
You are using VB to create a COM component that will encrypt a string supplied to it by a client application. Encrypting this string might take considerable time. You want to allow the client application to perform additional work while the encryption is
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 p
Answer: B

Deck Info

25

permalink