Answer:
In the second case there's no way to know what depth the bullet will penetrate into the block.
Explanation:
Since the block is on a frictionless surface, when hitted by the bullet, this last one could barely penetrate the surface of the block and, both, start moving as one (perfectly inellastic collition) since here, there's no vise to hold the block into place.