A Level Computer Science OCR Test 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

In logical operations, what does OR return?

TRUE (1) only if both values are TRUE (1)

TRUE (1) only if both values are FALSE (0)

TRUE (1) if at least one value is TRUE (1)

In logical operations, the OR operator is designed to return TRUE (or 1) if at least one of the operands is TRUE (or 1). This means that if either operand is TRUE, the result of the OR operation will be TRUE. The key aspect of the OR operation is its inclusivity; if both values are TRUE, the result is still TRUE, and if only one value is TRUE, the operation also yields TRUE. It is important to note that if both values are FALSE (or 0), only then does the OR operation return FALSE.

This characteristic of the OR operation makes it a fundamental tool in logical reasoning and decision-making processes in computer science, as it allows for flexibility in conditions and is frequently employed in programming and algorithms to evaluate multiple possibilities.

Get further explanation with Examzify DeepDiveBeta

TRUE (0) if both values are different

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy