What Does A Resident Doctor Do?

What is the difference between a doctor and a resident?

.

Do doctors get paid during their residency?

How long is a doctor a resident?

What is meaning of resident doctor?