Since a prokaryotic cell does not have a nucleus the DNA will be found floating around in the cytoplasm. This often is referred to as the nucleoid.
The genes that survive and flourish in a species are the strong ones. Strong genes evolve into the next generation, while weaker ones die.