The right answer is thymine is used in replication while uracil is used in transcription.
If DNA is the carrier of heredity by replicating itself, it is the RNA, ribonucleic acid, which is generally used in cells as an intermediate gene to make the proteins they need (thanks to the transcription). RNA is also involved in many chemical reactions in the cell.
DNA is a polymer of deoxyribonucleic bases, more commonly called nucleotides. Each nucleotide consists of a phosphate group (or phosphoric acid) bonded to a sugar, deoxyribose, itself linked to a nitrogenous base. These bases are four in number: adenine (denoted A), thymine (denoted T), cytosine (denoted C) and guanine (denoted G). The DNA backbone consists of the sugar-phosphate repeat (the presence of uracyl (U) in the DNA shows that it is damaged.
RNA is usually synthesized in cells from a DNA template of which it is a copy. There are four nucleic bases in RNA: adenine, guanine, cytosine and uracil.
The thymine of the DNA is replaced by an uracil in the RNA, and the substitution of deoxyribose by a ribose makes the RNA chemically less stable than the DNA.