Which of the following is an example of popular sovereignty?
A. Federal courts overrule laws passed by congress
B. Some states decided to prohibit slavery by a vote of the residents
C. Political parties choose presidential candidates at national conventions
D. former colonial governments declared independence from British control