The correct answer is: A. Window
The relationship between “good” and “bad” is that they are opposites. A “good” thing is something that is desirable or beneficial, while a “bad” thing is something that
is undesirable or harmful.The relationship between “roof” and “window” is that they are both parts of a building. A “roof” is the covering that protects a building from the elements, while a “window” is an opening in a wall or roof that allows light and air to enter.
The other options do not have the same relationship as the original pair of words. “Floor” is not an opposite of “roof”, “walls” are not parts of a roof, and “pillars” are not parts of a building.