21. Is there an error in the below code?
Private _intSide As Integer
Public Property Side As Integer
_intSide=_intSide+2
End Property
Private _intSide As Integer
Public Property Side As Integer
_intSide=_intSide+2
End Property
22. What will be in Msg after the following code is evaluated?
If 5*3 OrElse 3^2 Then
Msg="Hi"
Else
Msg="Bye"
EndIf
If 5*3 OrElse 3^2 Then
Msg="Hi"
Else
Msg="Bye"
EndIf
23. . . . . . . . . refers to the process of locating and correcting errors.
24. . . . . . . . . variables are not reinitialized each time Visual Invokes a procedure and therefore retains or preserves value even when a procedure ends
25. Which of the following Case clauses is invalid in a Select Case statement whose selectorExpression is an Integer variable named intCode?
26. What will be the content of num, after the code execution; if before code execution num has value 90?
If num<=100
num=num*2;
ElseIf num>500
Num=num*3;
Endif
If num<=100
num=num*2;
ElseIf num>500
Num=num*3;
Endif
27. Following are the concatenation operator
28. A . . . . . . . . is a special computer that serves webpages.
29. To covert a number from one data type to another, you use the . . . . . . . .
30. Programmers use . . . . . . . . when they need to store related items in an array, even though the members have different data type.
Read More Section(Visual Basic)
Each Section contains maximum 100 MCQs question on Visual Basic. To get more questions visit other sections.