Algebraic Structures


Answer & solution
Answer: C for a nonempty alphabet (no official key was published)
Finite strings have identity ε under concatenation, but a nonempty string w has no inverse. For any string v, length(wv)=length(w)+length(v)>0, so wv cannot equal ε. Thus strings form a monoid, not a group. Permutations have inverse bijections; every nonzero residue modulo prime p has a multiplicative inverse. The subgroup criterion ab⁻¹∈S is valid when S is nonempty, as explicitly printed in the clearer alternate. If an empty alphabet were allowed, its sole string ε would form the trivial group; the conventional alphabet here is nonempty.