Does an solid expand or contract as the temperature rises?

depends on the solid, and the temperature range. Most typically, expand.