Question 1
What is the difference between a compiler and an interpreter?
A compiler is a program that converts a program written in a high-level language into a machine-language program. An interpreter is a program that reads and executes a program written in a high-level language.
The main difference between a compiler and an interpreter is that a compiler translates the entire program into machine code before it is executed, while an interpreter translates the program one statement at a time as it is executed. This means that compilers are faster than interpreters, but they also require more memory. Interpreters are slower than compilers, but they are more flexible and can be used to interpret programs that are written in a variety of languages.
Question 2
What is the difference between a procedural language and an object-oriented language?
A procedural language is a programming language that is organized around procedures, which are sequences of instructions that are executed one after the other. An object-oriented language is a programming language that is organized around objects, which are data structures that contain both data and methods that operate on the data.
The main difference between a procedural language and an object-oriented language is the way in which data is organized. In