how many cubic centimeters are in a block of brass weighing 34 grams?

Divide the mass by the density to get the volume.

Brass has densities that range from 7.9 to 8.9 g/cm^3, depending upon alloy composition and porosity. I suggest using an 8.4 g/cm^3 average value, unless a better value was provided.