It does, the core is made of highly dense, molten metals such as iron.
The centre of the Earth (the inner core) is actually composed of iron and nickel rather than rock. It is solid because the very high pressure drives up the melting temperature of these metals beyond...
The density of rock B is greater because its volume is less.
By heat and pressure
No. A similar rock could be formed, but some characteristics would be altered.