VB 6 Desktop 4
Terms
undefined, object
copy deck
-
You are calling an API function that requires a string capable of storing
100 bytes of data. How should you declare the string to be passed?
a) Dim myVar As String
b) Dim myVar As String ()
c) Dim myVar As String * 100
d) D - d) Dim myVar As String * 101
-
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 Compatib -
c) include licensign with your ActiveX control.
- You are preparing to deploy a VB application to a company sales force. There are approximately 5000 sales people, but not all of them will use your application. Your manager is concerned about minimizing cost and network traffic. You must distribute the
-
c) create multiple component .cab files to be installed from an intranet
-
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 t -
a) Add an Autorun.inf file to the root directory of the CD-ROM.
- Your Visual Basic application uses a COM DLL that is shared by multiple applications on the client computer. You must ensure that the component remains on the client computer until after the last application referencing the component is removed by using
-
b) Add the shared component to the list in the shared Files screen in the Package and Deployment Wizard
d) In the system registry, manually edit the reference count for the component - You create a Visual Basic application that will be distributed to users from your company's Web site. You want users to be prompted to enter a registration name serial number during installation process You want to use the Setup Toolkit to accomplish thi
-
b) the Setupl.exe file
-
You are using Visual Basic to debug a procedure. You want to change the value of a variable in break mode while stepping through the procedure. How can you do this?
a) Open the Locals window, click the Value column, and type in a new Value.
b - a) Open the Locals window, click the Value column, and type in a new Value.
- You are using VB to debug a program that uses mutiple procedures to process information. The program executes a debug.assert statement and places VB in break mode in a low-level utility procedure. You are not sure which procedure called this utility proc
-
a) on the view menu, select call stack
-
You are using Visual Basic write a COM DLL. You want to debug component by stepping through your code one line at a time can you do this?
a) Change the project type to Standard EXE. Set a breakpoint in the Sub Main.Subroutine and execute the Standa -
c) In the Add Project dialog box, select Standard EXE as the project type. Set the DLL project as the startup project. Set a reference to the Component Call the component from your Standard EXE
-
You are using Visual Basic to build an ActiveX control. You want to create a project group and add a Standard EXE project to test this control. How can you do this?
a) On the File menu click Add Project. Select Standard EXE as the project type. Set -
a) On the File menu click Add Project. Select Standard EXE as the project type. Set the Standard EXE project as the start project
- 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 disable. What must you change in y
- a) Remove all form objects from your project.
-
You create a Visual Basic application containing debug code. You do not want the debug code to run in the release version. Which action should you perform?
a) Create separate debug and release projects for your application.
b) Use conditional - b) Use conditional compilation.
- You create an activeX control named mycalendar. You need to debug your control within a VB host application named calendartest that you created earlier. You want to debug both mycalendar and its interaction with calendartest. When you select start from t
-
d) click cancel. Add the calendartest application to the project group and make it the startup project. select start again.
-
You compile a Visual Basic application into an .exe file the Package and Deployment Wizard to distribute the What must you do to the application before you can deploy it by using the Package and Deployment Wizard?
a) Compress the application into o - c) Create a package by using the Package and Deployment Wizard.
- You are testing the procedures in your Visual Basic application to try to trap as many run-time errors as possible. You implement error handling in the most of your procedures. Which error-handling option should you check on the General tab of the Projec
-
c) Break on Unhandled Errors
- You are debugging a VB desktop application. Many of the forms in the application use a variable named icountofkeypress, which is declared in the general declarations section of each form module. It appears that the variable contains the wrong value, but
- a) When defining the watch expression for Icountofkevpress, set the module context far the expression to Form1. Then set the procedure context to All procedures.
-
You deploy your Visual Basic application to a Web site by using the Package and Deloyment Wizard. What must users do to install your application onto their computers?
a) Browse to Web Page containing your application's cab file
b) Browse to W -
a) Browse to Web Page containing your application's cab file
- You decide to use a remote sever 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 sever co
-
b) the Setup1 files section
-
You create a Visual Basic ActiveX control that you want to be 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 Deployme - c) Create a single cab file by using the Package and Deployment Wizard. Transfer digitally sign the cab file, and transfer it to your Web server by using FTP.
- You use Visual Basic to create an ActiveX control named MyGrid. Many developers use MyGrid on forms 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 i
-
b) Binary Compatibility
- You create a Visual Basic application that you want to distribute over your company's LAN. You have already packaged the application as a single.cab file by using the Package and Deployment Wizard. How should this application be distributed to users who
-
b) Use the Package and Deployment Wizard to copy the application.cab file to each client workstation.
-
You are debugging a local procedure. There are five local integer variables declared in a procedure. You want to assign new values to these five variables before you continue running Code. How can you do this?(choose two)
a) Use the Immediate windo -
b) Highlight each value in the Watch window and type in each new value.
d) Highlight each value in the Locals window and type in each new value. - You deploy a Visual Basic application on a user's desktop by using the Package and Deployment Wizard. Upon launching the application, you realize that a COM DLL distributed with your application is not functioning. Where should you look to find out wheth
- d) In the St6unst.log file located in your application's folder
-
What is the outcome of the following section of code?
Sub Proc 1()
On Error Goto Errorhandler:
Dim strProcName as string
strProcName = "Proc1"
call Proc 1(strProcName)
Errorhandler:
MsgBox "E -
b) Error has occurred in Proc2