Programming
Language Project
Question
Set #3
Due:
November 9, 2004 at start of class
Answers
MUST be keyed in before printing
Name ________________________ Programming Language ___________
Note: For
each of these question sets, you should look first in the reports you were
given. You should then check the
information on the Web or in a book. If
the information is not in the report, you should say so and then find it on the
Web or in a book.
The first 4 questions are about comments in your language. ? In some languages comments were required to start at column 1
and nothing else could be on the line; in other languages comments started
midway through the line and no code could follow them on the same line; in some languages comments could be embedded
in the code; In some languages single
comments could extend over several lines.
1.
Show a typical
comment in your language
2.
Where does a
comment begin, end
3.
Where can it be
placed?
4.
Can a single
comment extend over more than one line?
5.
Is your
language case sensitive?
6.
Does your
language allow and/or require type declarations?
7.
What are the scalar data types, if any, in
your language?
8.
What are the
structured data types, if any, in your language?
9.
Does your
language have any other data types (i.e. pointers???)
10.
How are strings
handled in your language? (look at our
text for a description of the possible choices before answering this question).