Borrowed from English cake, from Old Norse kaka. Doublet of cake.
Practice speaking and memorizing "queque" and many other words and sentences in Spanish.