This is not about one of the examples here, but a question in the quiz:
"Me encanta la cocina francesa, ya sea lo salado o lo dulce."
I would have expected "la salada o la dulce" because I thought it would refer back to la cocina. Why is this change in gender?