can prepositions come at the end of the sentence

No.

Prepositions always have to begin a phrase that ends with a noun or pronoun.

The confusing thing is that some prepositions may be used as adverbs and can end a sentence.

Examples:

Preposition: This book is about a courageous boy.

Adverb: The papers were strewn about.

http://news.bbc.co.uk/1/hi/magazine/7595509.stm

Read Mr. Graves' comments (number 19)

Bobpursley has just given you an example of the word, "up" that can be used as either a preposition or an adverb. In his example, "up" is used as an adverb.

The site he posted is right. In casual speech it's o.k. to ask, "Who are you going with?" However in formal writing, avoid ending a sentence with a preposition. Reword the sentence so that you don't commit this error.

Yes, prepositions can sometimes come at the end of a sentence. This is known as "preposition stranding" or "preposition at the end" construction. While it is generally considered acceptable in informal English, it is often avoided in formal writing. However, there are certain situations where ending a sentence with a preposition can sound more natural or idiomatic.

If you are in doubt about whether to end a sentence with a preposition, you can follow these steps to determine if it is appropriate:

1. Identify the preposition in the sentence. Prepositions are words like "at," "on," "in," "to," "of," "by," "with," etc.
2. Understand the meaning and structure of the sentence. Consider the sentence's context, purpose, and tone.
3. Evaluate the sentence's clarity and naturalness. Think about whether the preposition at the end of the sentence sounds awkward or ungrammatical.

In some cases, you may be able to rephrase the sentence to avoid ending it with a preposition. For example, instead of saying, "Where are you going to?", you can say, "To where are you going?"

Remember that the most important aspect of language is effective communication. If ending a sentence with a preposition helps convey your message clearly, it is generally acceptable in everyday spoken English.