Question
Dim decSales As Decimal=12.2
Static decTotal As Decimal=13.5
a.
Both values lose their values
b.
Dim variable loses its value
c.
Static variable loses its value
d.
Both variables retain their values
Posted under Visual Basic
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What happens when a procedure containing the following statements ends?
Similar Questions
Discover Related MCQs
Q. Using a named constant is advantageous because to change a value in future, change __________
View solution
Q. Unintentional errors in application by declaring variables can be reduced by __________
View solution
Q. To declare a class-level named constant you declare it as __________
View solution
Q. In Visual Basic, if you keep a variable undeclared, it is automatically taken as___________ data type.
View solution
Q. __________ prevents you from using undeclared variable in your code.
View solution
Q. __________ ensures every variable and named constant is declared with a data type.
View solution
Q. __________ is used to fit the value of the data type to that of the memory location, implicitly.
View solution
Q. When a value is converted from one data type to another and can store numbers with greater precision, the value is said to be __________
View solution
Q. When a value is converted from one data type to another and can store numbers with less precision, the value is said to be __________
View solution
Q. You can eliminate the problems of implicit type conversion, with the help of __________
View solution
Q. Option Strict On disallows conversion of String data type to __________ implicitly.
View solution
Q. Option Strict On disallows conversion of Double data type to __________ implicitly.
View solution
Q. Instead of entering the Option statements in the Code Editor window, you also can enter in the __________
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Visual Basic? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!