1.
An ADO dynamic property is:
2.
Which of the following cannot be included in the Open method of the recordset?
3.
What does the controls collection contain?
4.
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?
5.
Global Procedures and Global Variables are declared in:
6.
Only Controls with a ________ property such as Picturebox, Toolbox, Statusbar etc. can be placed on an MDI form:
7.
Whenever the current record is about to change, Visual Basic generates the ______ event:
8.
Which of the following will provide the best aggregate performance for a query that is not executed repeatedly?
9.
The _______ property enables Visual Basic to draw complete images in memory before displaying them on the Screen.
10.
Which event of an ActiveX control data provider runs every time a bound control extracts data through the provider?
11.
Which event should you use to store property values into the PropertyBag?
12.
One can convert a Visual Basic Application into ActiveX Document using:
13.
Which event should be used to resize an ActiveX control as the user modifies the size of the control implementation on a form?
14.
The ______ function can be used to run any .com, .exe, .bat or .pif file from a Visual Basic program.
15.
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
16.
Which function or method will you use to get a count of the maximum index limit of an array?
17.
Which property of the ProgressBar determines how much of the bar is filled?
18.
In order to change the mouse pointer shape from glass to watch-glass, the property to be used is:
19.
The caption and the name properties of the command button:
20.
In order to access a file in Non-textual format, you have to open file in:
21. What is the extension of the Visual Basic project file that stores the design of a user control.
22. After a Dynaset type recordset has been created and opened, further searching is possible using the:
23. Which method of the Recordset object should you use to navigate multiple recordsets returned by a stored procedure?
24. In order to provide a transparent background to the Form, you must change the _________ property to _______.
25. Which event procedure is called only if AutoRedraw property is set to false:
26. Which events enable you to determine which key was pressed by the user?
27. The Kill command in Visual Basic is used for:
28. Which method would you use to get a free or unused File identifier while opening any file:
29. What data type is the HelpContextID?
30. Which event is fired when a text box loses focus?
31. Message Boxes can hold a maximum of _______ characters.
32. Which of the following is the only valid Resume statement in an error handler?
33. To store pictures in an array, Visual Basic provides the _____ control.
34. Which is the only event of the timer control?
35. 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 ChangeText(Form1.Caption,Y$)
36. 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.
37. What is the sequence of events when a form is unloaded?
38. What is the default value for the scalemode property of the form?
39. Which property of the Err object returns the numeric value associated with the most recent runtime error?
40. The event Lost_Focus of one object results in _____ of the other object:
41. Which of the following ADO recordset types provides the greatest degree of concurrency?
42. The ______ property is used to show Tool Tips or Help Balloons when the mouse rests on the object:
43. Which of the following can be shown to the user using the Common Dialog control in VB?
44. Which property of the form changes the form's title?
45. 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:
46. The _______ property changes the tab order at runtime:
47. Which of the following tools can be used to change the value of a variable or property during break mode of an application?
48. 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 to true?
49. Which collection of an ActiveX control enumerates all of the properties that can be bound to a data source?
50. Which of the following situations would not cause the Initialize event of an ActiveX control to occur?
51. You can create menus by the ________ and _________.
52. What is the sequence in which the following events are triggered when a form is loaded?
53. Visual Basic displays information depending upon the current value of two properties of the form, called:
54. Which of the following statements is capable of abandoning a series of modifications made to a recordset locked with a BatchOptimistic lock?
55. Procedures declared in a _____ are local whereas procedures declared in a ______ are available to the whole application.
56. The method used to search for records from within a table type recordset object is:
57. Which of the following methods is used to inform an ActiveX control's container that one of its properties has been modified?
58. Which event is triggered when the user moves to another open form?
59. Which of the following is an event of the Shape control?
60. What is the purpose of the Image List Control?
61. Which line of code listed here can be used to create a string of fixed length:
62. Which of the following statements is incorrect regarding toolbars?
63. Which of the following statements should you write to cause the component to fire an event?
64. A __________ control defaults to displaying the files in the current directory:
65. The settings for the Color properties in Visual Basic are indicated by:
66. What does the forms collection contain?
67. Which of the following will perform a direct execution of a Command object?
68. The _______ function enables a VB application to make use of the idle time and to respond periodically to events
69. Which property procedure is used to retrieve the value of a property?
70. Which method will you use to remove a form from the Screen but retain it in memory?
71. The Load & Activate events are associated with:
72. Which events allow you to determine if a Control or Shift key was pressed by the user?
73. What you must do before making calls to an ActiveX DLL project in the same Project Group?
74. 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 execution) we need to change:
75. The ____ function returns the numeric value from a string expression:
76. Name the only property supported by a collection?
77. What do CurrentX and CurrentY return?
78. Variables that allow sharing of values across event procedures are called:
79. Which event of a text box would you use for validating the data entered by the user?
80. Which of the following approaches to data modifications is the least efficient?
81. The interval property of the Timer control specifies the time in:
82. Which event occurs only once in the entire life cycle of an ActiveX control?
83. How can you keep the user from exiting a form by clicking the Close button?
84. Which of the following are not properties of Command Button:
85. Which of the following debug tools would you use to locate your current position in a series of embedded procedure calls?
86. 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?
87. A prepared statement is:
88. Which parameter of the WriteProperty method can be omitted but should be included to increase the efficiency of the control?
89. A project group is a Project which:
90. The _______ method loads the form named 'Form1' in to memory and also displays it.
91. You want to display the code and the description of an error. What would be the correct syntax?
92. If the CancelError Property of the CommonDialog Box is set to true then which of the following statement is true:
93. How do you create a read only property in a form?
94. What is the purpose of the Class Builder add-in in Visual Basic:
95. Which three methods does the collection object support?
96. The _______ method resets the contents of bound controls to their original values when the user clicks on the cancel button.
97. Which of the following is the only drag related event?
98. 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?
99. Which of the following procedure types will execute when you assign a value to a property of an object?
100. Which parameter of the Execute method of the Connection object returns the number of records that the operation affected?
101. Which of the following statements forces inline error handling?
102. Which of the following locking types will lock a recordset only during an Update process and not immediately when the data modifications are requested?
103. Which form event would you use to activate a pop-up menu when the user clicks the right mouse button?
104. How many root nodes can a TreeView control have?
105. To deactivate the Form UnLoad event, you make the following change in the function definiton: Private Sub Query_Unload(Cancel as Integer,UnloadMode as Integer) To prevent the Form from closing, you will set the:
106. Which object is used for error handling?
107. The _____ of the Visual Basic IDE displays a list of all the files of an application:
108. Which of the following compiled elements does not run in process?
109. To save a file in a RichTextBox Control and a picture in a Picture Box Control, you will use the _________ and __________ statements, respectively:
110. To destroy an object and free the memory space occupied by it, the keyword used is:
111. The vbCritical symbol displays:
112. Which of the following is not an element of the ADO model?
113. Which of the following is the valid stepping option?
114. How do you make a control gray and inaccessible in VB?
115. Which property of the ListView control determines which field a sort is based on?
116. In Visual Basic, which method can you use to send key strokes to other Window applications?
117. Which line of the following code contains an error? 1 public Sub Command1_Click() 2 Dim str As String str = 'Hello World' 3 i = val(str) 4 length = len(str) 5 Msgbox 'No Of Characters in ' & str & ' = ' & CStr(length) 6 End Sub
118. You try to initialize a new Object variable with the following line but receive an error. What could be the possible cause? Set MyVar = New Classname
119. Labels do not respond to _____ and ______ events.