Relational Operations Flashcards

All 3 cards in this deck

In AQA pseudo-code, what do the relational operators ≠, ≤ and ≥ mean?

≠ is not equal to, ≤ is less than or equal to, and ≥ is greater than or equal to.

What type of value does a comparison such as score > 50 give?

A Boolean value: True or False.

What is the difference between age < 18 and age ≤ 18?

≤ includes the boundary value but < does not. When age is 18, age < 18 is False but age ≤ 18 is True.