COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Low Level Programming Language
A
A classic method for learning programming with commands to control movement and drawing of an on-screen robot called a “turtle". The turtle hearkens back to early implementations in which children programmed a physical robot whose dome-like shape was reminiscent of a turtle.
B
A named group of programming instructions. Functions are reusable abstractions that reduce the complexity of writing and maintaining programs.
C
A programming language with many commands and features designed to make common tasks easier to program. Any high level functionality is encapsulated as combinations of low level commands.
D
A programming language that captures only the most primitive operations available to a machine. Anything that a computer can do can be represented with combinations of low level commands.
Explanation: 

Detailed explanation-1: -Low level programming language: A programming language that captures only the most primitive operations available to a machine. Anything that a computer can do can be represented with combinations of low level commands.

Detailed explanation-2: -C and C++ are now considered low-level languages because they have no automatic memory management.

Detailed explanation-3: -The correct answer is Assembly language. Two common types of low-level programming languages are assembly language and machine language. Examples of high-level programming languages in active use today include Python, Visual Basic, Delphi, Perl, PHP, ECMAScript, Ruby, C#, Java.

Detailed explanation-4: -Machine language is a first generation language written using 1s and 0s. It was hard for humans to use and they made mistakes easily. It is a low level language that is machine dependent. This means it can only work on the computer it was designed for.

There is 1 question to complete.