A) $S=(1,2) \cup (2,3]$
Here the Supremum would be 3, since it's the least upper bound of the set. Which 3 would be in the set.
The infimum would be 1, since it's the greatest lower bound, but it's not included in the set.
For the compact I know it's supposed to be closed and bounded so looking at this set, there is a finite subcover covering [3], but when looking at the open set (1,2), there doesn't exist a finite subcover covering (1). Would this be a non compact case?
The set is bounded but not closed. For example, the collection $(1,2) \cup (2+{1 \over n},4)$ is an open cover that has no finite subcover.