91
2.Given these four syntax templates:
mark the following “Dwits” as either valid or invalid.
Valid Invalid
a. XYZ ______ ______
b. 123 ______ ______
c. X1 ______ ______
d. 23Y ______ ______
e. XY12 ______ ______
f. Y2Y ______ ______
g. ZY2 ______ ______
h. XY23X1 ______ ______
3.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 k. semantics
f. execution phase l. block
(1) A symbolic name made up of letters, digits, underscores, and dollar signs,
but not beginning with a digit
(2) A place in memory where a data object that cannot be changed is stored
(3) A program that takes a program in a high-level language and translates it
into machine code or Bytecode
(4) An input device
(5) The time spent planning a program
(6) Grammar rules
(7) A sequence of statements enclosed by braces
(8) Meaning
Dwit
Twitnit...
Twitnit
Twit... Nit...
Twit
X
Y
Z
Nit
1
2
3