Due to the difficulty of formatting text and drawing lines on a web page, I've listed the sentence components.
Note that the material in parentheses is not needed for exam answers: it is here to help you understand
the sentence syntax.
- People with red hats should not wear green scarves.
People with red hats: S (noun phrase with a post-modifying prepositional phrase)
should not wear: V
green scarves: O (noun phrase)
- Don't paint that door red!
[you]: S (subject is implied by the imperative mood of the verb)
that door: O (direct object)
red: C (object complement)
- The red house on the hill stands out against the sky.
The red house on the hill: S (noun phrase with a post-modifying prepositional phrase)
stands out: V (verb phrase)
against the sky: A (prepositional phrase)
- The student who failed her exam was very upset.
S includes subordinate clause: S-V-O
The student who failed her exam: S (noun phrase that includes a subordinate clause)
who failed her exam: subordinate clause
her exam: O (direct object; noun phrase)
very upset: C
- When she saw him on the corner of the street, she wept.
A is a subordinate clause: S-V-O-A
When she saw him on the corner of the street: A
on the corner of the street: A (two prepositional phrases)