Congress declares a person to be guilty of a crime without having been given a trial. This is an example of


A. habeas corpus.

B. a bill of attainder.

C. an ex post facto law.

D. cruel and unusual punishment.