In present article we extend one of our earlier works Bhar et al. (Astrophys. Space Sci. 359: 13, 2015) by considering quadratic equation of state for the matter distribution. The solution has its distinct feature as the EoS chosen is quadratic and is presenting for the first time in Tolman VII background. The solution is well behaved in nature in all respects and satisfies energy conditions. The solution is also free from central singularities and satisfies Buchdahl condition. Using this solution, we optimized the masses and radii of few well-known compact stars namely Her X-1, RX J1856.5-3754, PSR B0943 + 10, PSR B1913 + 16 and Cyg X-2 with their experimentally observed values.