AQA GCSE Computer Science · 8525
Paper 1
Revise: Relational OperatorsStrings can be compared in lexicographic order, like dictionary order. Compare their characters from left to right until a difference determines which comes first:
'adam' < 'adele'isTruebecause their first two letters match, thenacomes beforee. Use values of appropriate, compatible data types rather than assuming that any two kinds of data can be meaningfully ordered.