Answer: (c) both a and b
Sensing the environment and responding to it is a property of all living organisms, from the simplest prokaryotes to complex eukaryotes. Bacteria move towards nutrients or away from harmful chemicals; plants respond to light, water and temperature; animals respond to sound, touch, light and chemicals through their sense organs.
That is why NCERT says that all organisms are aware of their surroundings, and this ability (consciousness in a broad sense) is one of the defining features of life. So it is not limited to prokaryotes or eukaryotes alone.