Step 1: Understanding the Concept
Pyridine is a six-membered heterocyclic aromatic compound containing one nitrogen atom in the ring.
Step 2: Counting atoms
The ring has 5 carbon atoms and 1 nitrogen atom. Each carbon carries one hydrogen, so there are 5 hydrogen atoms.
Step 3: Compare the options
The formula is \(\text{C}_5\text{H}_5\text{N}\), option (D). \(\text{C}_4\text{H}_4\text{S}\) is thiophene and \(\text{C}_4\text{H}_4\text{O}\) is furan.
Final Answer:
Pyridine has the formula C5H5N.
\[ \boxed{\text{(D) }\text{C}_{5}\text{H}_{5}\text{N}} \]