您贵姓 asks only for the surname, and asks it politely - the expected answer is 我姓王, not a full name. 你叫什么 is the casual version and fine with peers. What surprises learners is 叫我小王就行: 小 plus a surname is how colleagues address each other, and offering it yourself is an invitation to drop the formality.