• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/24

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

24 Cards in this Set

  • Front
  • Back
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) Dim myVar As String * 101
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 Compatibility option to NO Compatibility.
b) Using the Package and Deployment Wizard. digitally sign your ActiveX control.
c) include licensign with your ActiveX control.
d) set your Activex control to read-only.
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 application to those users who want it, without increasing network traffic unnecessarily. How should you make your application available to the sales people who need to use it?
a) create .htm, .ddf and .inf files to be installed from an intranet
b) create an install.exe file for the application. send an email message to each potential user and include the install.exe file as an attachment.
c) create multiple component .cab files to be installed from an intranet
d) create a cab file for the application. send an email message to each potential user and include the .cab file as an attachment.
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 the root directory of the CD-ROM.
b) Make sure the setup application is named Autorun.exe
c) Add the line Autorun=l to the project.inf file produced by the Package and Deployment Wizard.
d) Add the name of your setup application to the Startup section of the Setup.ini file
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 the Add/Remove Programs utility in Control Panel. Which two actions must you take?(Choose Two)
a) Run Regsvr32.exe from a command prompt to ensure that the component will not be removed prematurely
b) Add the shared component to the list in the shared Files screen in the Package and Deployment Wizard
c) Indicate the installation location for the file as a shared file directory
d) In the system registry, manually edit the reference count for the component
e) Include with the setup routine a .reg file for the component.
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 this. Which file must you modify?
a) the Setup.exe file
b) the Setupl.exe file
c) the application's.cab file
d) the application's.inf file
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) Open the Locals window, and type an expression in the Expression column to Evaluate the desired value.
c) Open the watch window. click the Value column, and type in a new value
d) Open the watch window. and type an expression in the Expression column to Evaluate the desired value.
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 procedure. You want to find out the name of the calling procedure without losing the local context information. How can you do this?
a) on the view menu, select call stack
b) on the debug menu, select step out
c) open the watch windows, and examine the value in the context column for the current procedure
d) open the local window, and expand the tree until you find the parent property
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 Standard EXE from within the Visual Basic IDE.
b) 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 Standard EXE. Call the Component from your Standard EXE
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
d) Change the project type to ActiveX EXE. Set a breakpoint in the Sub Main.Subroutine and execute the DLL from within the Visual Basic IDE.
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 the Standard EXE project as the start project
b) On the File menu. click New Project. Select Standard EXE as the project. Set the Standard EXE project as the start project
c) On the File menu click Add Project Select Standard EXE as the project type. Set the ActiveX control as the start project
d) On the File menu click New Project. Select Standard EXE as the project type. Set the ActiveX control as the start project
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 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.
d) Change the project type to ActiveX DLL.
e) Change the project type to ActiveX Control
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 compilation.
c) Comment out the debug code.
d) Delete the debug code before compiling.
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 the VB IDE run menu, the dialog box shown in the exhibit is displayed. How should you begin your debugging session?
a) click cancel. Start over by selecting start with full compile from the run menu
b) click cancel. Run the calendartest application from MS window explorer
c) enter calendartest.exe in the start program box and click OK
d) click cancel. Add the calendartest application to the project group and make it the startup project. select start again.
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 one or more .cab files
b) Assign the appliation a version number in the registry.
c) Create a package by using the Package and Deployment Wizard.
d) Assign the application an .ipk file.
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 Project Options dialog box?
a) Break in Class Module
b) Compile on Demand
c) Break on Unhandled Errors
d) Break on All Errors
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 only on forml. You want to step through the application code with a watch expression set on icountofkeypress. How can you control the scope of your watch expression so that it applies only to the icountofkeypress variable in forml?
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.
b) When defining the watch expression for icountofkeypress, specfiy the expression as icountifkeypress.value. Then set the module context to all modules, and set the procedure context to all procedures.
c) When defining the watch expression for icountofkeypress, set the module context for the expression to all modules. Then set the procedure context to form load.
d) When defining the watch expression for icountofkeypress, specfiy the expression as if form=forml then icountifkeypress. Then set the module context to all modules, and set the procedure context to all procedures.
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 Web Page containing your application's Setup.exe file
c) Browse to Web Page containing your application's Setupl.exe file
d) Browse to Web Page containing your application's .inf file
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 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 BootStrapl files section
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 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 Deployment Wizard. Transfer digitally sign the cab file, and transfer it to your Web server by using FTP.
d) Create multiple .cab files by using the Package and Deployment Wizard. Then create an .exe file from these .cab files.
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 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
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 are connected to the LAN?
a) Use the Package and Deployment Wizard to copy the application.exe file to each client workstation.
b) Use the Package and Deployment Wizard to copy the application.cab file to each client workstation.
c) Use the Package and Deployment Wizard to copy the application.exe file to a sever network driver.
d) Use the Package and Deployment Wizard to copy the application.cab file to a sever network driver.
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 window to execute assignment statements for each variable
b) Highlight each value in the Watch window and type in each new value.
c) Type the new values directly into the source code.
d) Highlight each value in the Locals window and type in each new value.
e) Read new values from an .ini file.
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 whether the COM DLL was registered during the installation of the application?
a) In the Setup.lst file located in the C:\Windows\System folder
b) In the St6unst.log file located in the C:\Windows\System folder
c) In the Setup.lst file located in your application's folder
d) In the St6unst.log file located in your application's folder
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 "Error in" & strProcName
End Sub

Sub Proc2(strName as String)
strName = "Proc2"
call Proc3(strName)
end sub

Sub Proc3(ByVal strName as string)
dim x as integer
strName = "Proc3"
x = 1/0
end sub

a) Error has occurred in Proc1
b) Error has occurred in Proc2
c) Error has occurred in Proc3
d) Success
b) Error has occurred in Proc2