I ate a cake yesterday.改为一般疑问句

问题描述:

I ate a cake yesterday.改为一般疑问句
否定句呢?

Did you eat a cake yesterday