NEW
Font size
WorksheetsVisual Basic - Revision Class 8
Total questions: 12
Worksheet time: 8mins
What is IDE?
Integrated Development Engine
Individual Division Entrepreneur
Integrated Development Environment
Integrated Diplomatic Engineering
What is the use of 'Dim' ?
To check whether a variable is real or fake.
To declare a command
To declare a variable
None of the above
What are the rules for declaring variable names in VB?
It should not begin with a number
There should be no space or period within the name
It should be less than 255 characters
All of these
None of these
What are the different sections of data types?
Constant and Variable Datatypes
Numeric and Non- Numeric Datatypes
Numeric String and Non- Numeric Constant
All of these
Choose the relational operator from the ones given...
+ addition
^ exponentiation
<> not equal to
MOD - remainder
\ Integer division
Find the wrong line in the code... if hello = 6
Dim hello as Integer
Integer = TextBox1.text
If hello MOD 2 = 0 Then
Label2.text = "Even Number"
Else
Label2.text = "Odd Number"
End If
Integer = TextBox1.text
Label2.text = "Odd Number"
Dim hello as Integer
None of these
What type of a operators are OR and AND ?
Relational
Logical
Arithemetic
Optional
Give the output of the code... If Rain = 14
Dim Rain as Single
Rain = TextBox1.text
Select Case Rain
Case 1 to 5
MsgBox("Rainfall is low")
Case 6 to 10
MsgBox("Rainfall is medium")
Case 11 to 15
MsgBox("Rainfall is high")
Rainfall is low
Rainfall is medium
Rainfall is high
Error in line - Dim Rain as Single
Loops are know as _________ in programming languages.
interactive statements
Iterative statements
Intellogical statements
Insperective statements
Find the output of the given code
Dim sequence as Integer
For sequence = 0 to -20 Step -2
LIstBox1.Items.Add(sequence)
Next
-1, -3 , -5, -7, -9 ...... - 20
0, -2, -4, -6, -8 ....... -20
0, -20, -40, -60, -80 ....... -200
0, 2, 4, 6, 8 ...... 20
Select the non numeric data type
Date
Boolean
Object
String
All of these
What is the file extension of VB?
.ppt
.sb2
.vb
.py
