Concept:The correct idiom for remembering something perfectly is by heart.Explanation:The sentence requires a fixed phrase that means memorised exactly without any aid.The common expression is know or learn something by heart.From memory is possible but is normally used with actions like recite from memory.To memory and to heart are not standard idioms in this context.Thus, the most suitable completion is option C.Answer:C. by heart