| preferred AP College board partner for AP classes
easy Solved by 2 students
Exclusive OR If Statement
< 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

Complete work status

D

Incomplete 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.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

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