Your name is whatever you are commonly known as. My full legal name is not the same as the name I use in public settings, but either is an acceptable response to a demand for "my name"
If you are Nicola Smith on your passport and you give your name as Nicky Smith (which is what everyone calls...