CSC 117 Programming for Scientists and Engineers
Study Guide for Final Examination, August 16, 2002
If you know all the material that has been on the quizzes, tests, and
handouts, and if you re-read the code you wrote for the programming
projects, you will be able to do very well on the final exam.
-
I might ask a simple question about the code you wrote for a programming
project.
-
Chapter 1.
I will not emphasize material in Chapter 1, although you should know the
basics. In particular, you need to know everything in the Fortran 90
Summary on pages 39-41.
-
Chapter 2.
I expect you to know almost everything in Chapter 2.
I will not expect you to know all the intrinsic functions listed on page 102,
but only abs, floor, int, max, min, mod, nint, real, sqrt.
-
Chapter 3. Logical type.
I expect you to know almost everything in Chapter 3.
-
Relational operators.
-
Logical operators.
-
Logical expressions.
-
Block if statement.
-
Logical if statement.
-
if-else if construct.
-
I will not test on the case construct.
-
Chapter 4. Loops.
-
Counter-controlled loops. (Definite loops.)
-
do-exit construct.
-
do-while construct. (Page 253)
-
I will not test on cycle or named constructs.
-
Chapter 5. Input/Output.
-
Format specifiers (three kinds).
-
Format descriptors.
-
iw
-
fw.d
-
a or aw
-
explicit character strings (output only)
-
tab descriptors
-
horizontal spacing
-
vertical spacing
-
scanning control
-
bn, bz (input only)
-
write statement.
-
read statement.
-
iostat.
-
open statement.
-
Internal files (using a character variable as the input or output stream).
-
Chapters 6 and 7. Function subprograms.
-
Intrinsic functions. I expect you to know the meaning of each of
the following intrinsic functions: abs, aint, floor, int, max, min,
mod, nint, real, sqrt, size, lbound, ubound, trim, len, ichar, iachar.
-
Instrisic subroutines.
-
Actual arguments, dummy arguments.
-
Intent specifiers.
-
contains
-
Local variables.
-
Scope.
-
Type of a function, how to declare it.
-
Recursion.
-
Interfaces.
-
call statement.
-
Chapters 8 and 9. Arrays.
-
Declaration of arrays.
-
Allocatable arrays.
-
Allocate, deallocate.
-
Array assignment.
-
from another array.
-
inside a loop.
-
array constants. (1-dimensional only).
-
implied do.
-
broadcast.
-
Subarrays.
-
Assumed shape.
-
Out-of-bounds subscripts.
-
Additional topics.
Print version