For me and my friends, we don't use 你好吗 for greeting. 你好 is the most common way to say hello when you firstly meet someone, it can be used both causlly and formally. 您好 is a more respectful and formal way to say 你好.
For friends, you can just say Hi~
I think 吃了吗(have you eaten yet?) is not usually used amony young people. I have never say this as a greeting to my friends. But older Chinese always say this.
And for friends that you haven't met or talked recently, I usually use 最近忙什么呢?(What are you busy with recently?) as greeting or the beginning of the conversation.