Point (a,b) lies on the:
x-axis if b=0
y-axis if a=0.
Also, the given point lies in the:
First quadrant, if a>0 and b>0,
Second quadrant, if a<0 and b>0,
Third quadrant, if a<0 and b<0 and
Fourth quadrant, if a>0 and b<0.