nǐ jiào shénme míngzi?
What's your name?
你来过中国吗?
Have you already been to China?
The structure is 你 (you) + 来 (come) + 过 (experience marker) + 中国 (China) + 吗 (question particle). The particle 过 indicates that the action has been experienced at least once.
你去过中国吗?
nǐ qù guo Zhōngguó ma?
Have you been to China? — Uses the verb 'to go' instead of 'to come', focusing on the trip rather than arrival.
你曾经来过中国吗?
nǐ céngjīng lái guo Zhōngguó ma?
Have you ever been to China? — More formal with the addition of 'ever' (曾经).
你来过中国吗?
nǐ lái guo Zhōngguó ma?
Have you been to China?
是的,我去年去了。
shì de, wǒ qù nián qù le.
Yes, I went last year.
Appropriate
Avoid when
You can say 'nǐ lái guo Zhōngguó ma?' (你来过中国吗?). It literally means 'Have you come to China before?'
Pronounce it as 'nee lai gwor jong-gwor ma?' with a rising intonation on 'ma' to indicate a question.
Use '你来过中国吗?' when you are in China or the listener is in China, focusing on the experience of coming here. '你去过中国吗?' is more general and can be used anywhere.
Tomyo
Remember 你来过中国吗? and hundreds of other phrases with smart reviews, audio and examples.