The correct option is B 4
64 small cubes are cut from the bigger cube, hence each edge will cut out to 4 small cubes.
Now, there are 2 such cubes which lie on the edge of the face painted yellow and other face painted in different colour. Since, there are 2 such edges thus, total number of such cubes is 4.