COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An advantage of programming in High Level is
A
Easier for us to understand
B
Useful for device drivers
C
Programs execute faster than other generations
D
None of the above
Explanation: 

Detailed explanation-1: -The advantages of high-level languages are: It is much easier to write programs in high-level languages than in low-level languages. Many high-level languages use normal command words such as IF, ELSE, and FOR, so it is much easier for a human to make sense of the program. High-level languages are portable.

Detailed explanation-2: -Programmers write in high-level languages because they are easier to understand and are less complex than machine code. They allow the programmer to focus on what needs to be done, rather than on how the computer actually works.

Detailed explanation-3: -High level language provides higher level of abstraction from machine language. They do not interact directly with the hardware. Rather, they focus more on the complex arithmetic operations, optimal program efficiency and easiness in coding.

Detailed explanation-4: -High-level languages have a more natural and readable syntax, which makes it easier for programmers to read and understand the code. Low-level languages have a more cryptic syntax that is difficult to read and understand. High-level languages are more portable across different hardware and software platforms.

There is 1 question to complete.