The correct definition of an irrational number is:
B. a number that cannot be expressed as a fraction, \( \frac{p}{q} \), where p and q are integers and q is not equal to zero.
Irrational numbers cannot be written as a simple fraction and have non-repeating, non-terminating decimal expansions. Examples include numbers like \( \sqrt{2} \) and \( \pi \).