ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Declarative
|
|
Functional
|
|
Object Orientated
|
|
Procedural
|
Detailed explanation-1: -The Functional Paradigm: In this paradigm we express computations as the evaluation of mathematical functions. The Imperative Paradigm: The language provides statements, such as assignment statements, which explicitly change the state of the memory of the computer.
Detailed explanation-2: -Functional programming is a paradigm of building computer programs using expressions and functions without mutating state and data. By respecting these restrictions, functional programming aims to write code that is clearer to understand and more bug resistant.
Detailed explanation-3: -The logic programming paradigm takes a declarative approach to problem-solving. It’s based on formal logic. The logic programming paradigm isn’t made up of instructions-rather it’s made up of facts and clauses.
Detailed explanation-4: -Imperative. Logical. Functional. Object-Oriented.