Name
_______________________
NOTE: The answers to some of these questions may be
found in the code samples you have seen.
You may find others in our text book and still others on the Web. The best source of information is the Ada
Information Clearing House (fondly called AdaIC) whose web address is on the
useful URL page.
1.
What
is the last line in a
2.
How
many reserved words are there in
3.
What
is the assignment operator in
4.
What
is the
5.
What
other types of loops does
6.
What
is the function of a semi-colon in
7.
In
FORTRAN, parameters were passed by reference. In
Pascal they were passed by value
(copy in) or by reference (var). How are
they passed in
8.
FORTRAN
had two types of subprograms and so did Pascal, how many does
9.
What
are the
10.Who is responsible for the
development of the
11.What was the intended use for the
12.What are the discrete data types in
13.What are the structured data types
in
14.What other data type is there in
15.What do you need to include in your
program in order to be able to input or output text in
16. Write the
17. Write the statement you would need
in your program to be able to read and write values of type vegetable. You may assume that your program already has with ada.enumerated_text_io; at
the top.
(i.e. can you have the following two type declarations in the same program?
type trafficLight is (red, green, yellow);
type crayon is (red, orange, blue);