Selection

CS-185 Spring '99 Learning Objectives


Logical Constants, Expressions and Variables

Know the two possible values of logical constants and how to write them.

Know the symbols for and meanings of all 6 relational operators.

Know the symbols for and meanings of all 5 logical operators.

Be able to use the relational and logical operators to expression selection criteria.

Be able to use parentheses to control the order of evaluation of relational and logical operators and make logical expressions more readable.

Be able to explain why using the equal to relational operator with real expressions may cause problems.

Be able to declare, define and use logical variables in Fortran 90.

If Constructs

Know the flowchart, pseudocode and Fortran 90 syntax for logical if statements.

Be able to use logical if statements to produce conditional execution of single Fortran statements.

Know the flowchart, pseudocode and Fortran 90 syntax for simple form block if-then-end if constructs.

Be able to use simple form block if-then-end if constructs to produce conditional execution of one or more Fortran statements.

Know the flowchart, pseudocode and Fortran 90 syntax for general form block if-then-else-end if constructs.

Be able to use general form block if-then-else-end if constructs to produce conditional execution of one or more Fortran statements.

Know the flowchart, pseudocode and Fortran 90 syntax for multialternative block if-then-else if ... -end if constructs.

Be able to use multialternative block if-then-else if ... -end if constructs to produce conditional execution of one or more Fortran statements.

Be able to nest all types of if constructs.

Select Case Constructs

Know the flowchart, pseudocode and Fortran 90 syntax for multialternative select-case constructs.

Know the restrictions on case selector variable types.

Be able to explain the purpose of the case default clause in select-case constructs.

Be able to use multialternative block select-case constructs to produce conditional execution of one or more Fortran statements.

Be able to nest select case statements.


Send comments and suggestions about these objectives to: Charles S. Tritt, Ph.D.
This page last updated 3/18/97