Again, the point is to discern how the car's past may affect you in the future. All of these factors can weigh heavily on the car's condition. You'll want to know about major repair work as well as regular maintenance. Ask for the car's service records. If the seller does not have the documentation, ask where service was typically performed, then call the shop for a history.
Many sellers are straightfoward even about minor tweaking.
If so, you can use this information to bargain for a lower sales price. If you're buying from an individual, call the manufacturer to find out whether the warranty is transferrable. Even if the car is only a couple years old, you may not be able to simply assume the remaining guarantee. If the seller agrees, take the car to a good mechanic you trust. If you don't know one, ask friends for recommendations.