For the interrogative statement, I would ask, "Do you want any cake?" Cake, this context, has been used to contract, "Do you want (a slice of) cake?" In formality, I guess you can say, "Do you want any cakes", but this should be used if you're selling multiple cakes, as if you were the owner of a bakery.
Cheers!