By which of the following can the if-else statement be replaced?

A. Bitwise operator

B. Logical operator

C. Conditional operator

D. Arithmetic operator

Ans: Conditional operator
Reason:Conditional operator is also known as the ternary operator – is an alternative form of the if/else statement that helps you to write conditional code blocks in a more concise way. First, you need to write a conditional expression that evaluates into either true or false .25-Ja



Posted on by