The previous answers have all been awesome, but I just wanted to mention a weird way the MCAT has tested this in the past. Consider the two big assumptions of the ideal gas law - ideal gases have no particle volume and no intermolecular forces between particles. When do gases deviate most from the ideal gas law? At low temperature and high pressure. In other words, if you raise the pressure enough, gas particles start to be forced closer and closer together. At this point, they'll begin to interact with each other via hydrogen bonding, van der Waals forces, etc (depending on the molecules themselves, of course). So, liquids and solids are like the ultimate form of a nonideal gas - external pressure has promoted intermolecular forces to the point where they no longer are gaseous at all.
Can't remember which AAMC it was, but if I remember correctly it mentioned ideal gas deviations at 180 GPa, where the substance in question was decidedly in solid form!