Name _____KEY___________________
1.
What
is the first word in every standard Pascal program? |
program |
2.
Assuming
the name of a standard Pascal program is MySort, and that the program will
have input from the keyboard and produce output on the screen, what does the
first line in the program look like? |
program MySort(input, output); |
3.
What
is the last line in a standard Pascal program? |
end. |
4.
How
many reserved words are there in standard Pascal? |
|
5.
What
is the assignment operator in Pascal? |
:= |
6.
What
is the Pascal equivalent of the FORTRAN
DO loop? |
for
<lcv> := <i-v> to <f-v> do <statement> |
7.
What
other types of loops does Pascal have? |
while <boolean-expression> do <statement> repeat <statement> until <boolean-expression> |
8.
What
is the Pascal equivalent of the FORTRAN computed GOTO? |
case
<case-index> of <case-constant>
: <statement>; ... <case-constant-list>
: <statement>; end |
9.
What
is the function of a semi-colon in Pascal? |
it is a
statement separator |
10.
In
FORTRAN, parameters were passed by reference. How are they passed in Pascal? |
by value OR by reference |
11.
FORTRAN
had two types of subprograms, how many does Pascal have? |
two |
12.
What
are the Pascal subprograms called? |
function procedure |
13.
Who
'invented' the Pascal programming language? |
Niklaus Wirth |
14.
In
what decade was it invented? |
1970’s (1974) Wirth
Jensen Report released |
15.
What
was the intended use for the Pascal programming language? |
1.
to devise a language suited for teaching programming as a
systematic discipline, with fundamental concepts clearly and naturally
reflected by the language. 2.
to define a language that could be reliably and efficiently
implemented on then available computers |
16.
What
are the discrete data types in
Pascal? |
enumerated, char, integer boolean |
17.
What
are the structured data types in Pascal? |
record, array, file, set |
18.
What
other data type is there in Pascal? |
real, pointer |
19.
What
is/are the Pascal output statements? |
write and writeln |
20.
What
is/are the Pascal input statements? |
read and readln |