Cube of side 12 cm cut into 4³ = 64 small cubes of side 3 cm each.

Cubes with exactly 2 painted faces lie on the edges, excluding the corners.
Each edge has 4 cubes; the 2 corner cubes have 3 painted faces.
Cubes per edge with 2 faces = 4 − 2 = 2.
12 edges × 2 = 24 cubes.

Volume of one small cube = 3³ = 27 cm³
Total volume = 24 × 27 = 648 cm³

Final Answer: 24 cubes, 648 cm³