| preferred AP College board partner for AP classes
AP Computer Science A/Unit 4: Iteration
Start Practice TestPractice Test
About Exam
easy Solved by 2 students
Compound Boolean Expression Logic
< Prev
Next >

Develop code to represent compound Boolean expressions and determine the result of these expressions.

A programmer needs to check if a student qualifies for honors (GPA >= 3.5 AND either SAT >= 1400 OR ACT >= 32). Which of the following correctly represents this compound condition?

A

gpa >= 3.5 && (sat >= 1400 || act >= 32)

B

gpa >= 3.5 || (sat >= 1400 && act >= 32)

C

gpa >= 3.5 && sat >= 1400 || act >= 32

D

(gpa >= 3.5 && sat >= 1400) || act >= 32

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