Vidyalelo
Computer Science · Q227

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Engineering and GATE · Computer Science · question 227

Q227

What happens when a procedure containing the following statements ends? Dim decSales As Decimal=12.2 Static decTotal As Decimal=13.5

A.
Both values lose their values
B.
Dim variable loses its value
Answer
C.
Static variable loses its value
D.
Both variables retain their values

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board