Which compound contains both ionic and covalent bonds?

(1)HBr
(2)CBr4
(3)NaBr
(4)NaOH

NaOH

To determine which compound contains both ionic and covalent bonds, we need to understand the difference between ionic and covalent bonds.

Ionic bonds occur when one or more electrons are transferred from one atom to another. This transfer of electrons results in the formation of positively charged ions (cation) and negatively charged ions (anion). Ionic compounds are formed between a metal and a nonmetal.

Covalent bonds, on the other hand, occur when atoms share electrons. Covalent compounds are formed between two nonmetals.

Now, let's apply this information to the given compounds:

(1) HBr - This compound consists of a hydrogen atom (H) and a bromine atom (Br). Both hydrogen and bromine are nonmetals. Therefore, HBr is a covalent compound.

(2) CBr4 - This compound consists of a carbon atom (C) and four bromine atoms (Br). Carbon is a nonmetal, and bromine is also a nonmetal. Therefore, CBr4 is a covalent compound.

(3) NaBr - This compound consists of a sodium atom (Na) and a bromine atom (Br). Sodium is a metal, and bromine is a nonmetal. Since it is formed between a metal and a nonmetal, NaBr is an ionic compound.

(4) NaOH - This compound consists of a sodium atom (Na), an oxygen atom (O), and a hydrogen atom (H). Sodium is a metal, and oxygen and hydrogen are nonmetals. Since it is formed between a metal and a nonmetal, NaOH is also an ionic compound.

Therefore, compounds (3) NaBr and (4) NaOH contain both ionic and covalent bonds.

The compound that contains both ionic and covalent bonds is NaOH (sodium hydroxide).

Explanation:
Ionic bonds occur between a metal and a nonmetal, resulting in the transfer of electrons. In NaOH, sodium (Na) is a metal, while hydroxide (OH) is a polyatomic ion consisting of a nonmetal (oxygen) bonded to a hydrogen atom. The bond between sodium and hydroxide is ionic.

On the other hand, covalent bonds occur when two nonmetals share electrons. HBr (hydrogen bromide) is a covalent compound because both hydrogen (H) and bromine (Br) are nonmetals. Similarly, CBr4 (carbon tetrabromide) is also a covalent compound as it consists entirely of nonmetals.

Thus, the compound that contains both ionic and covalent bonds is NaOH.