CIS 230 - Visual Basic

Ch. 3 Worksheet #1

1. Which data type requires more memory, Long or Integer?

 

2. What is another name for keywords?

 

3. What prefix should be used for a variable to indicate that it is declared as a Long?

 

4. What are the three levels of scope for variables in order from the one having the most narrow scope to the one with the widest scope?

 

5. Give an example of a statement that uses the Val function.

 

6. Give an example of a mathematical expression that shows multiplication and division must be evaluated from left to right and that if this is not done, the expression will be misinterpreted.

 

7. What is the difference between the FormatCurrency and FormatNumber functions?

 

8. Give an example of an accumulator statement and explain how it could be used.

 

9. List three data types.

 

10. What is the largest value that a variable with the data type Integer can assume?