728x90 AdSpace

Latest Article

Visual basic Quiz Example Question VB String Function





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)




  
no image
  • Title : Visual basic Quiz Example Question VB String Function
  • Posted by :
  • Date : 10:04
  • Labels :





  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Top