💻ap computer science a review

Two-Way Selection Statement

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

A two-way selection statement is a programming construct that allows the program to make a decision between two possible actions based on a condition. It evaluates a Boolean expression and executes different code blocks depending on whether the condition is true or false.

"Two-Way Selection Statement" also found in:

2,589 studying →