The correct option is D No friction is acting in both cases.
Static friction comes into picture only when there is a tendency of relative motion between surfaces in contact. Here, in both the cases, no external force is acting in horizontal direction. Hence, no friction will act on the blocks.