Contents

Static variable can only be used in the………in which it is declared.
a) Class
b) Any procedures in the form
c) Any form
d) Only the Procedure it is declared in

d

A………cannot change its value while the application is running.
a) Constant variable
b) Class variable
c) Named constant
d) Static constant

c

Named constants are used because………
a) Because they take up less space in memory
b) Because they make documentation and code modification easier
c) Because they can be easily accessed by procedures
d) Because they are easily declared

b

What is wrong with the expression “const dblPi As Double = 3.141593”?
a) Double is written
b) Name should be DBLPi
c) “const” starts with a “C”
d) Value is too large

c

What is wrong with the expression “static dblPi AsDouble ”?
a) Double is written
b) Nothing is wrong
c) “Static” starts with a “S”
d) Value is not given

c

Using a named constant is advantageous because to change a value in future, change …
a) The value in the Const statement
b) The value of the variable wherever it appears in the program
c) The value of the variable anywhere in the program
d) The value of the variable in one of the procedures in the program

a