Class C Programming Language Final Problem 1 Definitions
1. Definitions.
| a. | T or F | Binary files are the same as text/plain files except that they (more than likely) contain non-printable characters. |
| b. | T or F | In integer arithemtic, 7 / 3 == 2 |
| c. | T or F | In pointer arithmetic, *(a + 1) for "double *a" is (a + 8) |
| d. | T or F | "char" is a 1-byte integer data type. |
| e. | T or F | "char*" is a 1-byte integer data type. |
| f. | T or F | "&x" is known as the "lvalue" for variable "x". |
| g. | T or F | IF-ELSE and SWITCH are examples of C "looping" mechanisms. |
| h. | T or F | SWITCH can replace a set of IF-ELSE statements in many cases. |
| i. | T or F | stdin and stdout are examples of "files". |
| j. | T or F | C COMMENTS are compiled into the final executable. |
| k. | T or F | Same as (j), but for PREPROCESSOR DIRECTIVES like constants and macros. |
| l. | T or F | Same as (k), but for SUBSTITUTIONS of such directives. |
| m. | T or F | Memory space is "reserved" for STATICALLY-ALLOCATED variables when the final executable is compiled. |
| n. | T or F | Same as (m), but for DYNAMICALLY-ALLOCATED variables. |
| o. | T or F | An AUTOMATIC C variable is created when it comes into scope and destroyed when it passes out of scope. |
| p. | T or F | Same as (o), but for STATIC C variables. |
| q. | T or F | Macros like MAX(a,b) are functions, not substitution mechanisms. |
Last updated: Sept 27, 1998