The compound interest is interest calculated on the initial principal which includes all the accumulated interest from previous periods on a deposit or loan.
Therefore, from the options, the right answer will be that the compound interest is the interest applied to both the principal and to any previously earned interest.
Option A is right.