1. What will be the output of following
code?
Dim a As String
Dim b As String
a = 1
b = "2"
Print Val(a + b)
|
|
2. What will be the output of following
code?
Dim a As Byte
Dim b As Byte
Dim c As Integer
a = 100
b = 145
c = b * a+200/10
Print c * z
|
|
3. What will be the output of
following code?
Dim strTest As String
strTest = "Visual Basic"
Print Len$(strTest)
Print Left$(strTest, 3)
Print Right$(strTest, 2)
Print UCase$(strTest)
strTest = strTest + strTest
Print LCase$(strTest)
Print InStr$(strTest, "a")
Print LTrim$(strTest)
Print Trim$(strTest)
|
|
0 comments:
Post a Comment