Five houses of five different colours (blue, green, yellow, red and violet), with equal space between every two adjacent houses, are constructed in a row facing north.
Only statement I:
(I) Green and yellow coloured houses are constructed at the extreme ends of the row.

So, which coloured house is exactly in the middle of the row is unknown.
Only statement II:
(II) Violet and blue coloured houses are immediate neighbouring houses of green and yellow coloured houses, respectively.
So, which coloured house is exactly in the middle of the row is unknown.
Both statement I and II:
(I) Green and yellow coloured houses are constructed at the extreme ends of the row
(II) Violet and blue coloured houses are immediate neighbouring houses of green and yellow coloured houses, respectively

So, Red coloured house is exactly in the middle of the row.
Thus, Data in Statements I and II together is sufficient to answer the question.