Quitting during Ranked

If my opponent alt f4 out of the rank game. How does that affect both of our ratings?

The opponent can still reconnect as long as they have time left during the turn. If the opponent alt+f4, the server will still wait until they time out. Then you win by time out.