Is this sentence right. I mean wrote right

The people outside the Apple store, that have been waiting all night, are trying to purchase a new iPhone.

Victor wanted to impress Teresa,so he pretended to know French.

Do have the comma in the right place

Yes, the commas are placed correctly.

In your first sentence, change ‘that’ to ‘who’ since you’re referring to people, not things. I’d also write ‘new iPhones’ — plural since a bunch of people wouldn’t buy only one phone!

Commas are right.

Yes, both sentences you provided are correct grammatically, and the comma placement is accurate.

In the first sentence:
"The people outside the Apple store, that have been waiting all night, are trying to purchase a new iPhone."
The comma is correctly placed before the relative pronoun "that" to set off the clause "that have been waiting all night." This clause provides additional information about the people outside the Apple store.

In the second sentence:
"Victor wanted to impress Teresa, so he pretended to know French."
The comma is correctly placed after "Teresa" to separate the independent clauses connected by the coordinating conjunction "so." This comma is used to create a pause and improve the clarity of the sentence.

To determine if a comma is placed correctly, it is important to understand the grammar rules and how punctuation functions in a sentence.