Answer:
a. by collisions and mergers of planetesimals.
Step-by-step explanation:
Inner planets are planets within 1.5 AU distance from the sun. These are called terrestrial planets because they are somewhat similar to Earth, mainly made of rocks.
The main ingredient of these planets are solar nebula and interstellar dust condensation of which leads to formation of small rock particles. These particles come close to each other under in the influence of gravity and other forces. As the mass of the particles increase they form planetesimals, these planetesimals eventually merge to form planets.