To solve the question regarding which compound contains ionic, covalent, and coordinate bonds according to the octet rule, we will analyze each given option step by step.
### Step 1: Understand the Types of Bonds
- **Ionic Bond**: Formed when there is a complete transfer of electrons from one atom to another, resulting in charged ions.
- **Covalent Bond**: Formed when two atoms share one or more pairs of electrons.
- **Coordinate Bond**: A type of covalent bond where one atom donates both electrons to the bond.
### Step 2: Analyze Each Compound
#### Option A: CaSO4 (Calcium Sulfate)
1. **Ionic Bond**: Calcium (Ca) loses two electrons to become Ca²⁺, and the sulfate ion (SO₄²⁻) accepts these electrons, forming an ionic bond.
2. **Covalent Bond**: Within the sulfate ion, the sulfur atom shares electrons with the oxygen atoms, forming covalent bonds.
3. **Coordinate Bond**: In the sulfate ion, one of the oxygen atoms can donate a lone pair to form a coordinate bond with another atom if needed.
**Conclusion**: CaSO4 contains ionic, covalent, and coordinate bonds.
#### Option B: NH4Cl (Ammonium Chloride)
1. **Ionic Bond**: Ammonium ion (NH₄⁺) and chloride ion (Cl⁻) form an ionic bond.
2. **Covalent Bond**: Within the ammonium ion, nitrogen shares electrons with hydrogen atoms, forming covalent bonds.
3. **Coordinate Bond**: The nitrogen atom donates a lone pair to form the NH₄⁺ ion, which can be considered a coordinate bond.
**Conclusion**: NH4Cl contains ionic, covalent, and coordinate bonds.
#### Option C: NaNO3 (Sodium Nitrate)
1. **Ionic Bond**: Sodium (Na) loses one electron to become Na⁺, and the nitrate ion (NO₃⁻) accepts this electron, forming an ionic bond.
2. **Covalent Bond**: Within the nitrate ion, nitrogen shares electrons with the oxygen atoms, forming covalent bonds.
3. **Coordinate Bond**: The nitrogen in the nitrate ion can be seen as having coordinate bonding characteristics with one of the oxygen atoms.
**Conclusion**: NaNO3 contains ionic, covalent, and coordinate bonds.
### Step 3: Final Conclusion
Since all three compounds (CaSO4, NH4Cl, NaNO3) contain ionic, covalent, and coordinate bonds, the correct answer is **Option D: All of these**.