Suppose, Y is an integer variable whose value is either 0 or 1.Which of the following is the equivalent of the statement .if (Y=0)Y=1;else Y=0?

A Y=1+Y

B Y=1-Y

C Y=Y-1

D Y=1%Y

Solution

Correct Answer: Option B

Practice More Questions on Our App!

Download our app for free and access thousands of MCQ questions with detailed solutions