The answer is "to". The sentence is comparing the speaker's friend's preference for two activities: singing and dancing. The word "to" is used in such comparisons to indicate the activity that is preferred over the other. For example, "I prefer coffee to tea" means that I like coffee more than tea. In this case, "She prefers singing to dancing" means that the person likes singing more than dancing.