Computer Science for IGCSE & O level - Programming (Section 8 - No. 31)

What will be the result of "cat" < "dog" in most programming languages?
True
False
Error
catdog

Explanation

String comparisons typically compare characters alphabetically and 'c' comes before 'd'.

Comments (0)

Advertisement