Formal:
* 您贵姓?(Nín guìxìng?) - This is the most polite and formal way to ask. It literally translates to "What is your honored surname?"
* 请问您姓什么?(Qǐngwèn nín xìng shénme?) - This is a slightly less formal but still polite way to ask. It means "May I ask what your last name is?"
Informal:
* 你姓什么?(Nǐ xìng shénme?) - This is a casual and informal way to ask. It means "What is your last name?"
Note:
* In Chinese culture, it's considered impolite to directly ask someone's full name. It's best to ask for their last name first and then their given name if appropriate.
* It's also important to be aware of the tone when asking. A respectful tone is essential when addressing someone's surname.