Questions & Answers about Queda la mitad del pastel en la mesa.
Because the grammatical subject is la mitad, which is singular. The phrase del pastel is just a complement (of the cake), not the subject. Compare:
- Singular: Queda la mitad del pastel.
- Plural: Quedan dos rebanadas de pastel.