1. This is the house which he lives in.

2. This is the house in which he lives.
3. This is the house where he lives.
4. This is the house he lives in.
5. This is the house he lives.
================================
Which ones are ungrammatical among the five sentences?

To determine which of the sentences are ungrammatical, we need to analyze the grammar and syntax of each sentence:

1. "This is the house which he lives in."
This sentence is grammatically correct. The relative pronoun "which" is used to introduce a restrictive clause modifying the noun "house." The prepositional phrase "in" correctly modifies the verb "lives."

2. "This is the house in which he lives."
This sentence is also grammatically correct. The preposition "in" is placed at the beginning of the relative clause, and the relative pronoun "which" is used to introduce the clause that modifies the noun "house." This sentence has a slightly more formal or literary tone compared to the first one.

3. "This is the house where he lives."
This sentence is also grammatically correct. The relative adverb "where" is used to introduce the restrictive clause modifying the noun "house." It functions similarly to the relative pronouns "which" and "that" and is commonly used in everyday speech.

4. "This is the house he lives in."
This sentence is grammatically correct. The prepositional phrase "in" correctly modifies the verb "lives," and the relative pronoun "he" correctly refers to the subject of the clause.

5. "This is the house he lives."
This sentence is ungrammatical. It is missing the preposition "in" that is required to complete the verb phrase "lives in." Without the preposition, the sentence lacks proper syntax.

Therefore, the ungrammatical sentence is number 5: "This is the house he lives."

5. Would be incorrect

#1 and #5

Nothing