For question 1, your answer of E) Jim Crow laws is correct!
For question 2, your answer of E) Jim Crow laws is actually correct, not B) Black codes. Jim Crow laws were the specific set of laws that enforced segregation in the US after the Civil War. Black codes were a set of laws passed in some southern states in the late 1800s that restricted the rights and freedoms of black people. However, they were not focused specifically on segregation. So your answer for question 2 should be E) Jim Crow laws.