COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the following two code segments.Which of the following best describes the type of programming languages used in code segments A and B?
A
Code A-Object-oriented Code B Object-oriented
B
Code A Object-oriented Code B Procedural
C
Code A Procedural Code B Object-oriented
D
None of the above
Explanation: 

Detailed explanation-1: -All programming languages fall into one of two broad categories: high-level or low-level. High-level coding languages are the furthest away from the actual code that translates commands on a computer system. Examples include C++, Java, and Python.

Detailed explanation-2: -The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning), which are usually defined by a formal language.

Detailed explanation-3: -Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects", which can contain data and code.

Detailed explanation-4: -Data compression (or source coding) Error control (or channel coding) Cryptographic coding. Line coding.

There is 1 question to complete.