Registering to vote as a member of the Democratic party

Registering to vote as a member of the Democratic party

a. permits you to vote in a Republican primary election in a closed primary state
b. prohibits you from voting in a Republican primary election in an open primary state
c. prohibits you from voting in a Republican primary election in a closed primary state
d. permits you to vote in all primary elections in a closed primary state