Visual Basic - Test 2 No. of Questions - 20 Time - 40 Minutes Negative Marking- No
Answers
A. Named B. ParamArray C. Optional D. ByRef
A. Save your control as Read-only B. Obtain a public key from Verisign. C. Reference your component using the OBJECT tag in your HTML page. D. Digitally sign your component
You have created an application that you are distributing over the Internet. After running the Setup Wizard, where can you find digital signatures?
A. End Do B. FindNext C. Loop D. While End
[General Declarations]
Public Total As Integer Function Running Total(AddMe) Static Total Total = Total + AddMe RunningTotal = Total End Function
Private Sub Form_Load() Total = 5 End Sub
Private Sub cmdSum_Click() MsgBox Running Total(1) End Sub
What will the message box display after the user clicks the cmdSum button three times?
A. 1 B. 3 C. 5 D. 8
A. Omit the Property Let procedure B. Omit the Property Set procedure C. Preface the object property declaration with the "Private" keyboard. D. Set its ReadOnly property to True.
Sub FooBar(ByReg x As Integer, ByRef y As Integer) x = 1 y = 2 End Sub
Sub Main Dim z As Integer FooBar z, z End Sub
An erroneous setting for which compiler option could cause this code to execute incorrectly?
A. Optimize for Fast Code B. Favor Pentium Pro C. Assume No Aliasing D. Remove Integer-Overflow Checks
A. "col" is a keyword. B. The Collection class and the Forms collection are not polymorphic C. A Collection is an ActiveX control and a Forms collection is an OLE control D. A Collection is not an object
A. The property has a well-defined set of values that need to be validated. B. The property is read-only. C. The property is a String data type, and there is no constraint on the size or value of the string. D. Setting the property causes changes to other internal variables or to the values of other properties.
How can you prevent a forms QueryUnload event from executing? A. Hit the Escape key B. Click a windows Close button. C. Execute the Unload statement. D. Execute the End statement.
A. TreeView Collection Items B. Node Objects C. ListView Items D. ImageList Controls
A. ctlMyControls.Remove Controls(1) B. Unload ctlMyControls(1) C. Set ctlMyControls(1) = Nothing D. Set ctlMyControls(1) = Null
IvwDB.SortKey = ColumnHeader.index 1 Set Sorted to True to sort the list IvwDB.Sorted = True
A. ListViews Click Event B. ListViews ColumnClickEvent C. ListViews NodeClick Event D. ListViews ColumnChangeEvent
Which function can the Setup Wizard of the Enterprise Edition of VB 5 perform in addition to installing your ActiveX EXE project?
A. Registers your project concurrently as a stand-alone application and as a shared component B. Reads your Setup.lst file to create your ActiveX projects .dep file C. Installs your project as both a DCOM and a CORBA application D. Install your project as an ActiveX shared component
A. Use default Visual Basic error handling B. Use a central error handling routine C. Use the On Error statement D. Use the Err.Raise method
Private Sub Form_Load() StatusBar1.Panels.Add With StatusBar1.Panels .Item(1).Style = sbrNum Number lock .Item(2).Style = sbrTime Caps lock End with End Sub
Private Sub Status bar1_Click() With StatusBar1 If.Style = sbrNormal Then .Simple Text = "Date and Time: " & Now .Style = sbrSimple Simple style Else .Style = sbrNormal Normal style End If End With End Sub
What will the StatusBar StatusBar1 display if the user clicks it twice?
A. two panels, one displaying the state of the NumLock key and the other the Time B. one panel displaying the state of the NumLock key C. one panel displaying the Time D. one panel displaying the Date and Time
A. ListImage B. TreeView C. ListView D. TabStrip
A. general procedure of a general module B. general procedure of Form2 C. event procedure of Form1 D. event procedure of Form2
scores