The correct option is A a
Let’s examine the sentence: “He went in the room, opened a box and took out a gun.” A room is an enclosed space and when someone enters inside such a space from outside, preposition “inside” is used. Hence, “in” should be replaced with “inside” in the sentence. So, the error is in Part a of the sentence. Hence, Option A is the correct answer.