A compiler is a software that translates code written in high-level language (i.e., source language) into target language.
Example: source languages like C, Java, . . . etc. Compilers are user friendly. The target language is like machine language, which is efficient for hardware.
Compiler is a program that converts human readable code into machine readable code. This process is called compilation.
A compiler is a software that translates a program in high-level language into machine language code.
First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.