Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
easy

Exclusive OR If Statement

Mark
< Prev
Next >

What is printed as a result of executing the following code segment?

public class Attendance {
    public static void main(String[] args) {
        boolean checkedIn = false;
        boolean submittedReport = true;
        if ((checkedIn && !submittedReport) || (!checkedIn && submittedReport))
            System.out.println("Incomplete work status");
        else
            System.out.println("Complete work status");
    }
}
A

No output

B

Error in data

C

Incomplete work status

D

Complete work status

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

Question Leaderboard

Not enough data yet to show leaderboard.

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|