Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 4: Iteration
Start Practice TestPractice Test
About Exam
medium Solved by 3 students

Equivalent Boolean Expressions

< Prev
Next >

Consider the following method.

public boolean isInRange(int num, int min, int max) {
    return !(num < min || num > max);
}

Which of the following can replace the return statement while maintaining the original behavior of the method?

A

return (num > min && num < max);

B

return (num >= min && num <= max);

C

return (num < min && num > max);

D

return !(num >= min && num <= max);

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

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1meromaroseif22 1m 07s 133
#2sinseungyun073011 0m 00s 100
#3hitrishabhatia12 0m 00s 90
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: apfive@apfive.org|Privacy Policy|