Step 1: Understand the factors affecting density.
Density generally increases with increase in molecular mass and atomic size.
Among halogen derivatives, density increases as the halogen atom becomes heavier.
The order of atomic masses of halogens is:
\[
F \lt Cl \lt Br \lt I
\]
Thus, compounds containing iodine usually have higher density than corresponding chlorides or bromides.
Step 2: Compare the given compounds.
\[
n-C_3H_7Cl
\]
contains chlorine, which is lighter.
\[
n-C_3H_7Br
\]
contains bromine, which is heavier than chlorine.
\[
n-C_3H_7I
\]
contains iodine, which is the heaviest among the given halogens.
Therefore, among the propyl halides:
\[
n-C_3H_7I \gt n-C_3H_7Br \gt n-C_3H_7Cl
\]
in density.
Step 3: Compare with carbon tetrachloride.
Although \(CCl_4\) is dense, iodine-containing compounds generally possess still higher density due to the very high atomic mass of iodine.
Hence:
\[
n-C_3H_7I
\]
has the highest density among all given compounds.
Step 4: Match with the given options.
The correct option is:
\[
(2)\; n-C_3H_7I
\]
Step 5: Final conclusion.
Hence, the compound having highest density is:
\[
\boxed{n-C_3H_7I}
\]