The inner coronagraph (COR1) of the Solar Terrestrial Relations Observatory (STEREO) mission has made it possible to observe CMEs in the spatial domain overlapping with that of the metric type II radio bursts. The type II bursts were associated with generally weak flares (mostly B and C class soft X-ray flares), but the CMEs were quite energetic. Using CME data for a set of type II bursts during the declining phase of solar cycle 23, we determine the CME height when the type II bursts start, thus giving an estimate of the heliocentric distance at which CME-driven shocks form. This distance has been determined to be ∼1.5R s (solar radii), which coincides with the distance at which the Alfvén speed profile has a minimum value. We also use type II radio observations from STEREO/WAVES and Wind/WAVES observations to show that CMEs with moderate speed drive either weak shocks or no shock at all when they attain a height where the Alfvén speed peaks (∼3R s – 4R s). Thus the shocks seem to be most efficient in accelerating electrons in the heliocentric distance range of 1.5R s to 4R s. By combining the radial variation of the CME speed in the inner corona (CME speed increase) and interplanetary medium (speed decrease) we were able to correctly account for the deviations from the universal drift-rate spectrum of type II bursts, thus confirming the close physical connection between type II bursts and CMEs. The average height (∼1.5R s) of STEREO CMEs at the time of type II bursts is smaller than that (2.2R s) obtained for SOHO (Solar and Heliospheric Observatory) CMEs. We suggest that this may indicate, at least partly, the density reduction in the corona between the maximum and declining phases, so a given plasma level occurs closer to the Sun in the latter phase. In two cases, there was a diffuse shock-like feature ahead of the main body of the CME, indicating a standoff distance of 1R s – 2R s by the time the CME left the LASCO field of view.