Volcanic eruption

How does the type of volcanic eruption relate to gas content and
magma viscosity?