Explain all the types of sentence by function

There are four types of sentences based on their functions. These types include declarative, interrogative, imperative, and exclamatory sentences.

1. Declarative Sentences: A declarative sentence makes a statement or gives information. It presents facts or ideas and ends with a full stop (period). For example: "The sun is shining."

2. Interrogative Sentences: An interrogative sentence asks a question. It seeks information and ends with a question mark. For example: "Are you going to the party?"

3. Imperative Sentences: An imperative sentence gives a direct command, instruction, or request. It usually starts with a verb and does not require a subject. Imperative sentences typically end with a full stop, but can also end with an exclamation mark in some cases. For example: "Clean your room!" or "Please pass me the salt."

4. Exclamatory Sentences: An exclamatory sentence expresses strong emotions or excitement. It can convey surprise, frustration, happiness, or any other intense feeling. Exclamatory sentences end with an exclamation mark. For example: "What a beautiful day!" or "I can't believe it!"