A gas does not have a specific shape or volume (so we reject option A), instead it adjusts itself to the container (which is further influenced by other forces such as gravity and temperature) and it with time, willl fill the whole container evenly, so the correct answer is:
(2) It takes the shape and the volume of any container in which it is confined