Relational operators (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Relational operators
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

13 cards from this deck

Show

Purpose of relational operators

Compare values & help programs make decisions

Result type returned by relational operators

Boolean (True or False)

The six relational operator symbols

<<, \leq, >>, \geq, ====, !=!=

Meaning of << operator

Checks if first value is smaller than second

Meaning of \geq operator

Checks if first value is bigger or equal to second

Operator symbol for equality comparison

==== (double equals)

Operator symbol for not equal

!=!=

Difference between ==== and ==

==== compares values, == assigns values

Types of data relational operators compare

Numbers and strings/text

System used for string comparison

ASCII code values

ASCII ordering hierarchy

Numbers << uppercase letters << lowercase letters

'Apple' << 'Banana' result

True (A comes before B in ASCII)

Statements that use relational operators

Selection (if...else) & repetition (while loops)

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.