Discuss five rules that apply to variables as defined in the accompanying figure.
What will be an ideal response?
1. The declaration of a constant variable begins with the letters Const, not the letters Dim.
2. You must assign the value to be contained in the constant on the same line as the definition of the constant.
3. You cannot attempt to change the value in the constant variable anywhere in the program. If you do, it will produce a compiler error.
4. The letter c often is placed before the prefix of the constant variable name to identify throughout the program that it is a constant variable and cannot be changed.
5. Other than the letter c constant variable names are forced using the same rules and techniques as nonconstant names.
You might also like to view...
The feature in Windows Vista used to combine audio, video, and still images to create a file that can be converted into a movie is called:
A) Windows Picture Organizer B) Windows Movie Maker C) Windows Photo Gallery D) Windows DVD Maker
The ____ button in the Align gallery centers the text between the left and right borders.
A. Stack B. Align C. Text D. Center