Chapter 6: Where Can I Store This? (Variables and Constants)
TRUE/FALSE
1. Each memory location inside a computer can hold only one item of data at a time.
2. An item stored in a memory location can be a number, text or a Boolean value.
3. You reserve a memory location using a Visual Basic instruction that assigns both a name and data type
to the memory location.
4. Because control names typically are more concise than variable names, using control names in an
expression makes the expression much shorter and easier to understand.
5. You use a problem’s solution—in other words, its output, processing, and input information and its
algorithm—to determine the variables to use when coding an application.
6. It is customary to enter the variable declaration statements at the end of the procedure.
7. Every numeric data type in Visual Basic has a TryText method that can be used to convert text to that
numeric data type.
8. The TryParse method parses the text, which means it looks at each character in the text, to determine
whether the text can be converted to a number of the specified data type.
9. A procedure-level variable has the same lifetime as the procedure in which it is declared.
10. The desk-check table for a program will contain two columns for each variable.
11. In addition to reserving (or declaring) variables in a program, you also can declare named constants.