Programming
Language Project
Question
Set #6
Due:
November 23, 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.
1.
Attach the source code for a short program
that you have interpreted/compiled and run.
The program does not have to achieve any meaningful task but must
include statements illustrating 3 additional answers from question set #2 (the
answers to questions 6,7, 8,9, and 10 that you didn't already illustrate in question
set #4). It must include line by line
comments identifying the type of statement AND the requirements for the
statement. Circle the type of
statements you are illustrating.
a.
Assignment
b.
Selection
c.
Iteration
d.
Input
e.
Output
2.
Capture the output produced by your program
(screen capture). Print it and attach it
also.
3.
Does your language provide any exception
handling mechanisms?
4.
If it does, provide a description of what
happens on erroneous input. If it
doesn't describe what happens when on erroneous input.
5.
Can the user define their own exception
handlers?
6.
What types of subprograms does your
language have (i.e. functions, procedures), if any?
7.
What is the parameter passing mechanism in
your language?
8.
Does your programming language allow recursive
calls?