QuestionQ1

Software Development Concepts

A developer writes the following code:

If the light is red, then stop -

Else if the light is green, then go

Which programming concept is the developer using?

Explanation

An if/else if conditional evaluates conditions and follows different execution paths depending on which condition is true. This is branching.

Community Discussion

No comments yet. Be the first to start the discussion!