Visual Basic 6 Test
A __________ control defaults to displaying the files in the current directory:
A prepared statement is:
A project group is a Project which:
After a Dynaset type recordset has been created and opened, further searching is possible using the:
An ADO dynamic property is:
Consider the following program code: (i) Dim FileName as String Open FileName For Input As #FreeFile (ii) Dim FileName as String FileNum = FreeFile Open FileName For Input As #FileNum
Consider the following subprogram: Sub ChangeText(ByVal X as String,Y as String) Y = X End Sub If you are calling it using the following code: Call ChangeT...
Given the following code segment, how many instances of the form are created and displayed ? dim frmvar1 as frmperson,frmvar2 as frmperson set frmvar1 = new frmperson set frmvar2...
Global Procedures and Global Variables are declared in:
How can you keep the user from exiting a form by clicking the Close button?
How do you create a read only property in a form?
If one needs to use an ampersand(&) in a Label but does not want it to be an Access Key, the _______ property of the label must be set to False.
If the CancelError Property of the CommonDialog Box is set to true then which of the following statement is true:
In order to access a file in Non-textual format, you have to open file in:
In order to change the mouse pointer shape from glass to watch-glass, the property to be used is:
In order to enable the DBGridControl or the MSFlexGrid Control to display the contents of a table or query, you need to set only the ______ property:
In order to overlap the controls (say a command button) during design time, we use the 'Send To Back' or 'Bring To Front' option from the Edit menu. To change it dynamically (i.e. during program ex...
In order to provide a transparent background to the Form, you must change the _________ property to _______.
In Visual Basic, which method can you use to send key strokes to other Window applications?
Labels do not respond to _____ and ______ events.
Message Boxes can hold a maximum of _______ characters.
Name the only property supported by a collection?
One can convert a Visual Basic Application into ActiveX Document using:
Only Controls with a ________ property such as Picturebox, Toolbox, Statusbar etc. can be placed on an MDI form:
Procedures declared in a _____ are local whereas procedures declared in a ______ are available to the whole application.
The ____ function returns the numeric value from a string expression:
The ______ function can be used to run any .com, .exe, .bat or .pif file from a Visual Basic program.
The ______ property is used to show Tool Tips or Help Balloons when the mouse rests on the object:
The _______ function enables a VB application to make use of the idle time and to respond periodically to events.
The _______ method loads the form named 'Form1' in to memory and also displays it.
The _______ method resets the contents of bound controls to their original values when the user clicks on the cancel button.
The _______ property changes the tab order at runtime:
The _______ property enables Visual Basic to draw complete images in memory before displaying them on the Screen.
The caption and the name properties of the command button:
The event Lost_Focus of one object results in _____ of the other object:
The interval property of the Timer control specifies the time in:
The Kill command in Visual Basic is used for:
The Load & Activate events are associated with:
The method used to search for records from within a table type recordset object is:
The settings for the Color properties in Visual Basic are indicated by:
To store pictures in an array, Visual Basic provides the _____ control.
Variables that allow sharing of values across event procedures are called:
Visual Basic displays information depending upon the current value of two properties of the form, called:
What data type is the HelpContextID?
What do CurrentX and CurrentY return?
What does the controls collection contain?
What does the forms collection contain?
What is the default value for the scalemode property of the form?
What is the extension of the Visual Basic project file that stores the design of a user control.
What is the purpose of the Class Builder add-in in Visual Basic:
What is the purpose of the Image List Control?
What is the sequence in which the following events are triggered when a form is loaded?
What is the sequence of events when a form is unloaded?
What you must do before making calls to an ActiveX DLL project in the same Project Group?
Whenever the current record is about to change, Visual Basic generates the ______ event:
Which collection of an ActiveX control enumerates all of the properties that can be bound to a data source?
Which event is fired when a text box loses focus?
Which event is triggered when the user moves to another open form?
Which event occurs only once in the entire life cycle of an ActiveX control?
Which event of a text box would you use for validating the data entered by the user?
Which event of an ActiveX control data provider runs every time a bound control extracts data through the provider?
Which event procedure is called only if AutoRedraw property is set to false:
Which event should be used to resize an ActiveX control as the user modifies the size of the control implementation on a form?
Which event should you use to store property values into the PropertyBag?
Which events allow you to determine if a Control or Shift key was pressed by the user?
Which events enable you to determine which key was pressed by the user?
Which form event would you use to activate a pop-up menu when the user clicks the right mouse button?
Which function or method will you use to get a count of the maximum index limit of an array?
Which is the only event of the timer control?
Which line of code listed here can be used to create a string of fixed length:
Which method of the Recordset object should you use to navigate multiple recordsets returned by a stored procedure?
Which method will you use to remove a form from the Screen but retain it in memory?
Which method would you use to get a free or unused File identifier while opening any file:
Which of the following ADO recordset types provides the greatest degree of concurrency?
Which of the following approaches to data modifications is the least efficient?
Which of the following are not properties of Command Button:
Which of the following can be shown to the user using the Common Dialog control in VB?
Which of the following cannot be included in the Open method of the recordset?
Which of the following compiled elements does not run in process?
Which of the following debug tools would you use to locate your current position in a series of embedded procedure calls?
Which of the following is an event of the Shape control?
Which of the following is the only drag related event?
Which of the following is the only valid Resume statement in an error handler?
Which of the following is the valid stepping option?
Which of the following locking types will lock a recordset only during an Update process and not immediately when the data modifications are requested?
Which of the following methods is used to inform an ActiveX control's container that one of its properties has been modified?
Which of the following procedure types will execute when you assign a value to a property of an object?
Which of the following situations would not cause the Initialize event of an ActiveX control to occur?
Which of the following statements forces inline error handling?
Which of the following statements is capable of abandoning a series of modifications made to a recordset locked with a BatchOptimistic lock?
Which of the following statements is incorrect regarding toolbars?
Which of the following statements should you write to cause the component to fire an event?
Which of the following tools can be used to change the value of a variable or property during break mode of an application?
Which of the following will perform a direct execution of a Command object?
Which of the following will provide the best aggregate performance for a query that is not executed repeatedly?
Which parameter of the Execute method of the Connection object returns the number of records that the operation affected?
Which parameter of the WriteProperty method can be omitted but should be included to increase the efficiency of the control?
Which property of the Err object returns the numeric value associated with the most recent runtime error?
Which property of the form changes the form's title?
Which property of the ListView control determines which field a sort is based on?
Which property of the ProgressBar determines how much of the bar is filled?
Which property procedure is used to retrieve the value of a property?
Which three methods does the collection object support?
You are creating a client application that calls ActiveX DLLs. Which of the following properties of the Err object provides the name of a component that sends an error back to the client application?
You are creating an ActiveX component that raises user-defined errors. What is the valid range of error numbers that you can use for user-defined errors?
You are creating an ActiveX component that raises user-defined errors. Which of the following statements correctly raises an error to the client with error number 20000?
You can create menus by the ________ and _________.
You want the code of the close command button to execute upon pressing the ESC key, even though the focus may be on another control in the form. Which property of the command button would you set t...
You want to display the code and the description of an error. What would be the correct syntax?