Homework 3 September 13
Name __________________________
|

|

|

|

|
Which of the following are tokens
in Java?
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following are
lexemes in Java?
|
|
|
|

|

|
|

|

|

|

|

|

|
Context-free grammars were
devised by
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following are
nonterminal symbols in the grammar rule:
<factor> -> (++ | --) ident |
(+ | -) (ident | int_literal) | (<expr>)
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following are terminal
symbols in the grammar rule:
<factor> -> (++ | --) ident |
(+ | -) (ident | int_literal) | (<expr>)
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following can be
sentenial forms?
|
|
|
|

|

|
|

|

|

|

|

|

|
A grammar is ambiguous if it:
|
|
|
|

|

|
|

|
|
|
|
|
|

|

|

|

|

|
Which of the following is not a
kind of attribute in an attribute grammar?
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following need not
be true for a loop invariant?
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following sentences
cannot be derived using the grammar of Example 3.2?
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following is not a
part of axiomatic semantics?
|
|
|
|

|

|
|

|

|

|

|

|

|
Which of the following semantic
description systems is most mathematical?
|
|
|
|

|

|
|

|

|

|

|

|
Which of the following was the
primary reason the relative slowness of interpretation of pseudocode
programs acceptable in the early 1950s?
|
|
|
|

|

|

|

|
Which of the following features
were added to FORTRAN IV to get FORTRAN 77?
|
|
|
|

|
Which version of FORTRAN was the first to
have any sort of dynamic variables?
|
|
|

|
What was the primary application area of
computers at the time Fortran was designed?
|
|
|

|
By which of the following
approaches were the pseudocodes of the early 1950s implemented?
|
|
|
|

|

|
|

|

|

|

|

|

|
Speedcoding was invented to
overcome two significant shortcomings of the computer hardware of the early
1950s. Which of the following are these two?
|
|
|
|

|

|
|

|

|

|

|

|

|
What hardware capability that
first appeared in the IBM 704 computer strongly affected the evolution of
programming languages?
|
|
|
|

|

|
|

|

|

|

|

|

|
In what year was the Fortran
design project begun?
|
|
|
|

|

|
|

|