Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Part of Speech What Quiz in PHP for Grammar Practice

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

How to Identify Parts of Speech in a PHP Quiz with Examples and Answers

We can divide English words into nine main categories, known as "parts of speech" or "word classes." Recognizing different components of speech is crucial. This aids in the comprehension and analysis of sentences. It also aids in the formation of good phrases.


Open and Closed Word Classes

Open classes comprise nouns, verbs, adjectives, and adverbs while the closed classes comprise pronouns, articles/determiners, prepositions, conjunctions, and interjections are the most prevalent divisions of speech. Open classes, on the other hand, can be changed and added to as the language evolves, whereas closed classes are pretty well fixed in stone. Every day, for example, new nouns are formed, but conjunctions do not.

 

In modern linguistics, the term "part of speech" has largely been replaced by the terms "word class" or "syntactic category." These concepts make it easier to categorize words objectively based on their structure rather than their context. The lexical or open class and the function or closed class are two types of word classes.

 

You can refer to our grammar quiz parts of speech for more practice.

 

Identifying Parts of Speech Quiz - The Eight Parts Of Speech Examples

In the English language, there are commonly 8 parts of speech. Starting from nouns and comprising pronoun, adjective, verb, adverb, conjunction, preposition, and interjection these eight parts of speech are the fundamentals of learning the language. The part of speech identifies how a word acts both grammatically and in terms of meaning inside a phrase. When employed in different contexts, a single word can serve as more than one element of speech. When using a dictionary, knowing the parts of speech is critical for finding the accurate definition of a word. Few part of speech examples are - 

 

1. Noun

  • Any name (Person  or Animal), any place, any thing or an idea is a noun. 

Articles (the, a, and an) are frequently used with nouns, but not always. Common nouns do not begin with a capital letter, but proper nouns do. Singular and multiple nouns, as well as concrete and abstract nouns, are all possible. Possession is indicated by adding s to nouns. Within a sentence, nouns can play a variety of roles, including subject, direct object, indirect object, subject complement, and object of a preposition.

The young boy brought me a very long letter from the mother, and then he quickly vanished. Oh my!

 

2. Pronoun

  • Those words that are used as a substitute for nouns are known as Pronouns. 

She... we... they... it

A pronoun is frequently used to replace a specific noun, known as its antecedent. The girl is the antecedent for the pronoun she in the preceding phrase. Personal pronouns refer to distinct people or things, while possessive pronouns imply ownership, reflexive pronouns emphasize another noun or pronoun, relative pronouns introduce a subordinate clause, and demonstrative pronouns identify, point to, or refer to nouns.


(Image will be uploaded soon)

Here are a few grammar quiz parts of speech that you should look at.


3. Verb

  • A verb expresses action or being.

jump... is... write... become

In a sentence, the verb expresses activity or being. A primary verb is present, as well as one or more supporting verbs. To express tense, verbs take on various forms.

 

4. Adjective

  • Those words that change or explain or describe any noun or pronoun are commonly known as an adjective.

pretty... old... blue... smart

An adjective is a word that is used to describe or modify a noun or pronoun. It usually responds to questions such as which one, what kind, or how many there are. (Adjectives [a, an, the] are commonly used in articles.)

 

5. Adverb

  • Those words that change or explain a Verb, Adjective or another adverb for that matter are commonly known as an adverb.

gently... extremely... carefully... well

A verb, an adjective, or another adverb, but never a noun, is described or modified by an adverb. It usually responds to the following questions: when, where, how, why, under what circumstances, and to what extent. Adverbs with the suffix -ly are common.

 

6. Preposition

  • Those words that are substituted before any noun or pronoun framing a phrase and modify another word in the sentence are known as prepositions.

by... with.... about... until

A preposition is a word that comes before a noun or pronoun and modifies another word in the sentence. As a result, a preposition appears in every propositional sentence. Almost always, the prepositional phrase serves as an adjective or an adverb.  

 

7. Conjunction

  • A conjunction joins words, phrases, or clauses.

and... but... or... while... because

A conjunction is a word, phrase, or sentence that joins two or more items and indicates the link between them. and, but, or, nor, for, so, yet are all coordinating conjunctions that connect grammatically equal items. Because, although, while, since, and other subordinating conjunctions connect sentences that are not equal. There are also other kinds of conjunctions.

 

8. Interjection

  • Those words that are used to express or convey an emotion are commonly known as interjection.

Oh!... Wow!... Oops!

These interjections are more commonly followed by an exclamation mark. 


Remember these rules when you participate in the interjection quiz.

FAQs on Part of Speech What Quiz in PHP for Grammar Practice

1. What part of speech is the word “what” in English?

The word what can function as a pronoun, determiner, or interjection depending on how it is used in a sentence.

  • As an interrogative pronoun: “What is your name?”
  • As an interrogative determiner: “What time is it?”
  • As an exclamatory interjection: “What! That’s amazing!”
Its part of speech depends on its grammatical role in context.

2. Is “what” a pronoun or a determiner?

The word what is a pronoun when it replaces a noun and a determiner when it modifies a noun.

  • Pronoun: “What happened?” (stands alone)
  • Determiner: “What book are you reading?” (modifies “book”)
The key difference is whether a noun follows the word.

3. What is an interrogative pronoun in grammar?

An interrogative pronoun is a word used to ask a question and replace a noun in the sentence. Common interrogative pronouns include what, who, whom, which, and whose.

  • Example: “What do you want?”
  • Example: “Who called you?”
They introduce direct questions and sometimes indirect questions.

4. Can “what” be used as a relative pronoun?

Yes, what can function as a relative pronoun when it introduces a noun clause meaning “the thing that.”

  • Example: “I know what you did.”
  • Meaning: “I know the thing that you did.”
In this use, it connects a dependent clause to the main clause.

5. How do you identify the part of speech of “what” in a sentence?

To identify the part of speech of what, check whether it replaces a noun, modifies a noun, or expresses emotion.

  • If it stands alone → pronoun
  • If it comes before a noun → determiner
  • If it expresses surprise → interjection
Analyzing its grammatical function helps determine its correct category.

6. What is the function of “what” in indirect questions?

In indirect questions, what functions as an interrogative pronoun introducing a noun clause.

  • Direct: “What are you doing?”
  • Indirect: “I wonder what you are doing.”
In indirect questions, the clause follows statement word order (subject + verb).

7. What are common mistakes when identifying the part of speech of “what”?

A common mistake is confusing what as always being a pronoun when it can also be a determiner or interjection.

  • Incorrect assumption: Always a pronoun
  • Correct analysis: “What movie?” → determiner
  • What is that?” → pronoun
Always check if a noun follows the word.

8. What is a part of speech quiz in English grammar?

A part of speech quiz is a grammar exercise that tests your ability to identify nouns, verbs, adjectives, pronouns, and other word classes in sentences.

  • Example question: Identify the part of speech of “what” in the sentence.
  • Purpose: Improve grammar skills and sentence analysis.
These quizzes help learners understand word functions in context.

9. How can I create a part of speech quiz using PHP?

You can create a part of speech quiz in PHP by building a form that displays questions and checks answers using server-side validation.

  • Step 1: Create an HTML form with multiple-choice questions.
  • Step 2: Use PHP to process user input.
  • Step 3: Compare answers with correct responses stored in an array.
  • Step 4: Display the score.
PHP handles the logic, scoring, and feedback dynamically.

10. Why is learning parts of speech important in English?

Learning parts of speech is important because it helps you understand sentence structure, grammar rules, and clear communication.

  • Improves writing accuracy
  • Enhances reading comprehension
  • Helps avoid grammar mistakes
  • Supports exam and quiz performance
Understanding word classes like nouns, verbs, and pronouns strengthens overall language skills.