Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
1 of 4

Let A be your set of rationals. You ask if A is open or closed?
Open or closed within what space? The reals R or the rationals Q?
Notice that A = [-2,2] cap Q = (-2,2) cap Q.
Thus within Q, A is clopen. However, within R it is neither.
The R closure of A is [-2,2]. The R interior of A is empty.