< previous page page_88 next page >

Page 88
d. 3Set
______
______
e. PAY_DAY
______
______
g. num5
______
______
h. Sq Ft
______
______

2. Given these four syntax templates:
0088-01.gif
mark the following Dwits either valid or invalid.
Valid
Invalid
a. XYZ
______
______
b. 123
______
______
c. X1
______
______
d. 23Y
______
______
e. XY12
______
______
f. Y2Y
______
______
g. ZY2
______
______
h. XY23X1
______
______

3. Mark the following constructs either valid or invalid. Assume all variables are of type int
Valid
Invalid
a. x * y = c;
______
______
b. y = con;
______
______
c. const int x : 10;
______
______
d. int x;
______
______
e. a = b %c;
______
______

4. Match each of the following terms with the correct definition (1 through 15) given below. There is only one correct definition for each term.
______ a. program
______ g. variable
______ b. algorithm
______ h. constant
______ c. compiler
______ i. memory
______ d. identifier
______ j. syntax
______ e. compilation phase
______ j. semantics
______ f. execution phase
______ l. block

3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
(1) A symbolic name made up of letters, digits, and underscores but not beginning with a digit
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
(2) A place in memory where a data value that cannot be changed is stored
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
(3) A program that takes a program written in a high-level language and translates it into machine code
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
(4) An input device

 
< previous page page_88 next page >