A Level Computer Science OCR Practice Exam 2025 - Free Practice Questions and Study Guide

Question: 1 / 400

What is the value of X OR X?

True

The expression "X OR X" evaluates to X itself in boolean logic. The OR operator returns true if at least one of the operands is true. Therefore, when the same value X is ORed with itself, the result will simply be X.

If X is considered true (or a value equal to 1 in binary terms), then true OR true results in true. Similarly, if X is considered false (or equal to 0), then false OR false results in false. Thus, the outcome depends on the truth value of X. Generally, in a logic operation, if X is any truthy value (e.g., true or non-zero), the result will always be true.

Given the context of the question, "True" signifies that the value will include X being true. Therefore, the correct choice reflects the logical outcome of the operation resulting in a truthy evaluation. In logical terms, the OR operation with the same variable will lead to a true outcome if that variable is true, which is why "True" is the most fitting answer.

Get further explanation with Examzify DeepDiveBeta

False

0

1

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy