Please read the following table in Markdown format and then answer the question according to the table. Table cells in one row are seperated by '|', and different rows are seperated by '
'.

Table:
|  | force type |  | effects |
| --- | --- | --- | --- |
| A(n) | frictional force | causes | heat; objects to slow down; smoke |
| A(n) | normal force | causes | solid objects to have structural integrity |
| A(n) | gravitational force | causes | objects to fall; objects to orbit one another |
| A(n) | electromagnetic force | causes | charges to be attracted; charges to be repelled |
| A(n) | strong nuclear force | causes | atomic nuclei to have structural integrity |
| A(n) | weak nuclear force | causes | nucleons to decay |
| A(n) | elastic force | causes | objects to revert to their original state after being deformed |
| A(n) | centripetal force | causes | objects to follow a curved path |
Question:
What causes charges to be attracted or to be repelled? Select the correct choice to answer the question or fill in the blank.
Choices:
(A) frictional force
(B) gravitational force
(C) elastic force
(D) electromagnetic force
Answer:
(D) electromagnetic force