Conditional operator is an alternative of:

Incorrect

Nested if

Incorrect

if— else

Incorrect

While

Correct

if