Final answer:
The HUAC was formed in 1938 to uncover communist activities in the US. McCarthy's motivation for "naming names" was driven by personal ambition and political opportunism.
Step-by-step explanation:
The HUAC, or House Un-American Activities Committee, was formed in 1938 during the early years of the Red Scare. Its primary purpose was to investigate and uncover supposed communist activities and sympathizers in the United States. McCarthy's motivation for getting involved in "naming names" during the Red Scare was fueled by his personal ambition, political opportunism, and a desire to gain public attention and power. By accusing individuals of being communists or having communist sympathies, McCarthy aimed to advance his own political career and gain influence in American society.
Learn more about Red Scare and McCarthyism