(Here, $B$ is relatively compact means the closure of $B$ is compact.)
$\hat A$ is compact.
$\hat A=\hat {\hat A}$.
$\hat A$ is connected.
$\hat A=X$.
I try to eliminate the options by using an example.
Consider $X=\Bbb R - \{1,2,3\}$ with metric topology and let $A=(-\infty,1)$.
Then $\hat A=(-\infty,1) \cup (1,2) \cup (2,3)$.
Hence options 1,3,4 are false.
So I select option 2 as an answer.
Is my method correct?
I think $\hat A=A$ for your example. The closure in your $X$ of $(1,2)$ equals $(1,2)$, which is not compact, and similarly for $(2,3)$. But you can still mark off 1 and 4 because of this.
How about $X=\{1\}\cup \{2\}$ and $A=\{1\}$. Then $\hat A=X$, which is not connected. So you can rule out option 3.
Thus option 2 is correct (you may want to try a simple proof of this).