Font size
WorksheetsVisual Basic Assessment
Total questions: 21
Worksheet time: 13mins
Which of these names would be most appropriate for a button that allows the user to submit the answer?
Answer
Button1
SubmitBttn
Button1.text
The Function and procedure in Visual Basic are by default
Private
Public
Protected
None of the above
Which symbol creates an access(hot) key in the text of a menu item?
&
@
$
#
Do While index <> 9
MsgBox("Hello")
index =index+1
Loop
Dim num as Double = 10
Do While num > 1
MsgBox(num)
num = num - 3
Loop
End Sub.
What numbers will be displayed in the list box when the button is clicked?
Variable scope and lifetime in Visual Basic can be
Module
Public
Static
Private
All of the above
Which type of control is used to design a form like above
Check Box
Option Button
Combo Box
List Box
Which language is not a true object-oriented programming language?
Java
C++
VB 6
VB.NET
Which property determines whether a control is displayed to the user?
Show
Visible
Enabled
Hide
Varieties of Do Loop can not be used in Visual Basic
Do While_Loop
Do_Loop Until
Do_Loop while
Do while_Wend
It displays the properties that are associated with an object.
Project Window
Properties Window
Form Window
Explorer
________________ is used to accept input from the user.
Label Box
Picture Box
Command Box
Text Box
______________ is the code to change the background color of the form.
me.backcolor = "vbred"
me.backcolor : vbred
me.backcolor 'vbred'
me.backcolor = vbred
____________ is used to appear message dialog box.
MsgBox
Label Box
Text Box
Command Box
