(2)This animation (click graphic) demonstrates what happens to a yellow star that travels too close to a giant black hole. As the orbiting star nears the black hole, immense gravitational forces stretch it until it is ripped apart. A small amount of gaseous debris from the star is consumed by the black hole and forms a rotating disk of gas. X-rays are given off as the gas is heated and progressively devoured by the black hole.
Watch the animation:
More info at The Chandra X-ray Observatory Center(1).