I was asked to write a sentence from the words: for / what / is / homework. Since the using of prepositions in the end of the sentence isn't the strongest part of my knowledge, I found it a little bit tricky, and I'd like to ask if I can write two correct sentences from them:
What homework is for?
What for is homework?