Hi Soni,
As i said that i did it for one of the customer i don't have the code with me . Also what i did is not the dynamic page rather dynamic rendering of controls based on the configuration like you create different surveys with different controls.
There are few component available in forge that you can refer , i will try to create a small example if time permits and submit here.
Regards,
-PJ-