JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
VB-1
10 MCQs
Sign in to Google
to save your progress.
Learn more
* Indicates required question
What keyword is used to define a function in Visual Basic?
*
1 point
CreateFunction
Function
Procedure
What data type can store whole numbers in Visual Basic?
*
1 point
String
Integer
Float
What is the extension for a Visual Basic project file?
*
1 point
.exe
.vb
.vbp
How can you add a comment to your Visual Basic code to explain its functionality?
*
1 point
// This is a comment
/* This is a comment */
' This is a comment
Which control allows users to enter text in a Visual Basic form?
*
1 point
Button
TextBox
Label
Which keyword declares a variable in Visual Basic?
*
1 point
Dim
Var
Create
What event is triggered when a user clicks a button on a Visual Basic form?
*
1 point
Load
Show
Click
A loop allows you to repeat a block of code multiple times. Which loop iterates a specific number of times based on a counter variable?
*
1 point
While loop
Do While loop
For loop
An IF statement allows you to execute code conditionally. What syntax is used for the condition?
*
1 point
If (condition) Then
while (condition)
When (condition) Do
The following code snippet displays a message box with the text "Hello World!". Which function achieves this?
*
1 point
WriteLine("Hello World!")
MsgBox("Hello World!")
Print "Hello World!"
Submit
Clear form
Forms
This content is neither created nor endorsed by Google.
Report Abuse
Terms of Service
Privacy Policy
Help and feedback
Contact form owner
Help Forms improve
Report