CMIMC 2016 Power Problem DFA.2

Consider the following DFAs. In simplest terms, what languages would they accept?

(a)

(b)