COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
This paradigm tells how to do something rather than what to do:
A
Declarative
B
Procedural
C
Scripting
D
Functional
Explanation: 

Detailed explanation-1: -In declarative paradigms, the programmer tells the computer what to do instead of how to do it.

Detailed explanation-2: -The procedural programming paradigm is where program code is divided up into procedures, which are discrete blocks of code that carry out a single task. Procedures, also called subroutines or functions, contain a series of computational steps to be carried out in the order specified by the programmer.

Detailed explanation-3: -Declarative programming is where you say what you want without having to say how to do it. With procedural programming, you have to specify exact steps to get the result. For example, SQL is more declarative than procedural, because the queries don’t specify steps to produce the result.

Detailed explanation-4: -Imperative programming refers to code that is concerned with lower levels of abstraction. Procedural programming is a subset of imperative programming which utilizes subroutines. Functional programming is a subset of declarative programming which utilizes subroutines.

Detailed explanation-5: -Imperative. Logical. Functional. Object-Oriented.

There is 1 question to complete.