| preferred AP College board partner for AP classes
easy Solved by 4 students
Compound Boolean Expression Evaluation
< Prev
Next >

What does the program print when executed?

public class Main {
    public static void main(String[] args) {
         int x = 2;
         int y = 3;
         if(x * 2 > y || (y / x) == 1)
             System.out.println("Pass");
         else
             System.out.println("Fail");
    }
}
A

Fail

B

Error

C

Nothing

D

Pass

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1hitrishabhatia12 0m 00s 90
#2bommasam00011 0m 29s 71
#3y.seong202711 0m 34s 66
Items per page:
10
1 – 3 of 3
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy