Conditional operator is an alternative of:

Incorrect

While

Incorrect

Nested if

Incorrect

if— else

Correct

if