Answer :

To determine which of the given compounds contains an ionic bond, we need to understand the nature of ionic and covalent bonds.

1. Ionic Bonds: These occur between metals and non-metals. In such bonds, electrons are transferred from the metal to the non-metal.

2. Covalent Bonds: These occur between non-metals. In covalent bonds, electrons are shared between the atoms.

Now, let’s analyze each option:

A. [tex]$CCl_4$[/tex] (Carbon Tetrachloride):
- Carbon (C) is a non-metal.
- Chlorine (Cl) is a non-metal.
- Since both elements are non-metals, [tex]$CCl_4$[/tex] contains covalent bonds.

B. [tex]$NH_3$[/tex] (Ammonia):
- Nitrogen (N) is a non-metal.
- Hydrogen (H) is a non-metal.
- Since both elements are non-metals, [tex]$NH_3$[/tex] contains covalent bonds.

C. [tex]$CO_2$[/tex] (Carbon Dioxide):
- Carbon (C) is a non-metal.
- Oxygen (O) is a non-metal.
- Since both elements are non-metals, [tex]$CO_2$[/tex] contains covalent bonds.

D. KBr (Potassium Bromide):
- Potassium (K) is a metal.
- Bromine (Br) is a non-metal.
- Since K is a metal and Br is a non-metal, they form an ionic bond when they combine.

Based on this analysis, the compound that contains an ionic bond is KBr (Potassium Bromide).

Thus, the correct answer is:
D. KBr