你今天吃了什麼東西?
你喜歡吃東西嗎?
the two expressions are correct.
simply,"东西"has three meaninngs.1.direction.东西南北。2.things,almost all the things can said"东西",animals,materials,foods,etc. like these words"what's this?"u can translate as "这是什么?"or "这是什么东西?"3.sometimes used to swear. eg."**真不是个东西!"or"**什么东西呀!"
there is funny thing when sometimes kidding between friends.
......
A:......我当然知道你是人,你不是 东西(things)
B:你这家伙,你才不是东西呢(here is scaring,means u bad man)
A:好好好,你是东西.(means u good)
B:气死我了,我不是东西,我是人。(here,B meant "things",but all know it also means he is a bad man,then A's aim come true)