Correct option is B
When the ball strikes the frame of the goal or the referee and remains within the goal and touch lines, it is considered still in play in football.
The ball is considered to be out of play when it has crossed the goal line or touchline, either on the ground or in the air. However, if the ball strikes the frame of the goal, the crossbar, or the referee, and remains within the field of play, it is considered to be still in play.
The play continues until the ball goes out of play or a foul/misconduct is committed by a player, leading to a stoppage of play.