Quincy Adams

Quincy Adams
What political party did John Quincy Adams belong to?

I checked wiki and it said
Federalist
Democratic-Republican
National Republican
Anti-Masonic
Whig

was he all of them?
It for a homework assignment that has to go on a flash card.

As president, he was a Democratic-Republican, and a National Republican in Congress, so those are arguably the two most important parties.

The American Presidents: John Quincy Adams