The Verb 姓
姓 is both a noun and a transitive verb. When it is used as a verb, it must be followed by an object.
A: 你姓什么?
B: 我姓李。
However, when 姓 is used with 贵 to form a polite expression to ask for someone's surname, the proper way to inquire and to respond is as follows:
A: 你贵姓?
B: 我姓王。
Do not say: 我贵姓王。
A: 你姓什么?
B: 我姓李。
However, when 姓 is used with 贵 to form a polite expression to ask for someone's surname, the proper way to inquire and to respond is as follows:
A: 你贵姓?
B: 我姓王。
Do not say: 我贵姓王。