1. Declare the integer variables x,y and z
Dim x,y,z as Integer
2. Assign values 5 to x, 10 to y and 15 to z
x=5
y=10
z=15
3. What are the values of C, N1, N2, N3 :
A=5
B=10
C=A+B
N1=A+10
N2=B
N3=5+N2
C=15( since A is 5 and B is 10)
N1=15 ( A is 5 and add 10 to it)
N2=10(B is 10)
N3=15 (N2 is 10 and add 5 to it)
3. Declare a string variable Friend, a numeric variable Num1 to store a decimal value. Assign the value 'Vedika' to the string variable created above.
dim Friend as String
dim Num1 as double
Friend = Vedika
No comments:
Post a Comment