WorksheetsVB programming
Total questions: 7
Worksheet time: 4mins
Name
Class
Date
1.
Which property of text box lets you to put a message in the text box
a)
print
b)
caption
c)
text
d)
text1
2.
--------------- VB function helps you to convert text to a numeric value
a)
value
b)
val
c)
num
d)
all of the above
3.
_______ data type is used to represent characters or set of characters
a)
char
b)
string
c)
char[]
d)
ch
4.
Which data type can be used to represent value of 'pi' -------------
a)
integer
b)
float
c)
double
d)
long integer
5.
What is the code to set the caption of a button as label's caption.
a)
command1.caption= label1.caption
b)
label1.text=command1.text
c)
label1.name=command1. name
d)
label1.caption=command1.caption
6.
Select the correct set of VB datatype
a)
int, float, string, dec
b)
integer,float,double,char
c)
integer,string,double, long integer
d)
All of the above
7.
dim a, b as integer, it is a VB statement.
What does this statement do?
What does this statement do?
a)
assigning values to the variable
b)
declaring variables a and b as type integer
c)
Instruction to the compiler
d)
dim is the comment line of VB
100 %
