Q: Equations of diagonals of the square formed by the lines x = 0, y = 0, x = 1 and y = 1 are
A. y = x, y + x = 1
B. y = x, x + y = 2
C. 2y = x, y + x = 1/3
D. y = 2x, y + 2x = 1
It is given that the lines x=0, y=0 , x=1 and y=1 form a square of side 1 unit
Let us form a square OABC having corners O(0,0) from the given lines
with A(1,0), B(1,1) and C(0,1)
Now we have to find the equation of the diagonal AC
Equation of a line is found out by
y=-1(x-1)
y=-x+1
x+y=1
Equation of diagonal OB is
y=x
y=x
Hence, the correct option is (a)