Which of the following is the correct definition of a rational number?
- A number whose square root is always an integer
- A number that has a finite decimal expansion only
- A number that is always a positive integer or zero
- A number that can be written as p/q where p and q are integers and q ≠ 0