The correct response is:
d. They received the nickname following attacks on Mexican civilians during the Mexican-American War.
The Texas Rangers earned the nickname "los diablos Tejanos" (the Texas devils) due to their reputation for brutality during this period, particularly in their interactions with the Mexican population.