213k views
25 votes
QUESTION 11

Which expression for YYY will result in an output of "Pass" only if x is exactly 32?
if YYY:
print('Pass')
else:
print('Fail')
a. x != 32
b.x == 32
OC. x >= 32
d. x <= 32

1 Answer

3 votes

Answer:

x == 32

Step-by-step explanation:

CODE in Java:

int x = 32;

if(x == 32){

System.out.println("Pass");

}

else{

System.out.println("Fail");

}

OUTPUT:

Pass

User Thyraz
by
4.6k points