Unit 2: Conditionals and Loops

Learning Objectives

2.1

  • Evaluate Boolean expressions that use relational operators in program code.

  • Represent branching logical processes by using conditional statements.

  • Represent branching logical processes by using nested conditional statements.

  • Evaluate compound Boolean expressions in program code.

  • Compare and contrast equivalent Boolean expressions.

  • Compare object references using Boolean expressions in program code.

2.2

  • Represent iterative processes using a while loop.

  • For algorithms in the context of a particular specification that does not require the use of traversals:

      • Identify standards algorithms.

      • Modify standard algorithms.

      • Develop an algorithm.

  • Represent iterative processes using a for loop.

  • For algorithms in the context of a particular specification that involves String objects:

      • Identify standard algorithms.

      • Modify standard algorithms.

      • Develop an algorithm.

  • Represent nested iterative processes.

  • Compute statement execution counts and informal run-time comparison of iterative statements.

  • Determine the result of executing recursive methods.