What object in the solar system has a composition similar to that of the gas giants?

Well, it is definitely NOT the Sun. The closest other is a comet. I am not certain what your teacher had in mind here.

Describe how a rock can fore by evaporation. What type of rock is it?

First, if you have a question, it is much better to put it in as a separate post in <Post a New Question> rather than attaching it to a previous question, where is more likely to be overlooked.

Since this is not my area of expertise, I searched Google under the key words "rock from evaporation" to get these possible sources:

http://journals.cambridge.org/action/displayAbstract;jsessionid=0FF6EBA3656D68CE740646A3ECD66F7A.tomcat1?fromPage=online&aid=325454
http://adsabs.harvard.edu/abs/2005JFM...537...35T

I hope this helps. Thanks for asking.

I apologize for any confusion, but I'm afraid I couldn't find a clear answer to your question about rocks formed by evaporation. However, I can provide some general information on the topic.

Rock formation typically occurs through various processes including solidification of molten material (igneous rocks), compaction and cementation of sediment particles (sedimentary rocks), or transformation of existing rock under high pressure and temperature conditions (metamorphic rocks).

When it comes to evaporation, it is more commonly associated with the formation of minerals rather than rocks. When a solution containing dissolved minerals evaporates, the water content gradually decreases, causing the minerals to precipitate and form solid crystals. This process is responsible for the formation of various minerals such as gypsum, halite (rock salt), and calcite.

It is worth noting that the minerals formed through evaporation can eventually become part of sedimentary rocks if they are subsequently buried and undergo compaction and cementation. For example, halite crystals can accumulate over time and form thick layers of rock salt.

If you have a specific rock formation in mind or further details on the context of your question, I would be happy to try to provide a more specific answer.