Correct option is A
A. Imperative Programming: This paradigm is command-based and focuses on describing how a program operates by specifying control flow and state changes.
Correct Mapping: IV (Command-based, procedural).
B. Object-Oriented Programming (OOP): OOP focuses on the use of objects, which are abstractions of real-world entities, and emphasizes modularity, encapsulation, and abstraction.
Correct Mapping: III (Imperative, abstract data type).
C. Logic Programming: This paradigm relies on declarative constructs to represent knowledge and uses logical rules for problem-solving, often associated with Prolog.
Correct Mapping: I (Declarative, clausal representation, theorem proving).
D. Functional Programming: Functional programming avoids mutable state and emphasizes declarative constructs and higher-order functions. It evaluates expressions without side effects.
Correct Mapping: II (Side-effect free, declarative, expression evaluation).
Information Booster
1.
Imperative Paradigm:
· Focuses on describing how tasks are performed step-by-step.
· Examples: C, Fortran.
2.
Object-Oriented Paradigm:
· Key principles include abstraction, encapsulation, inheritance, and polymorphism.
· Examples: Java, Python, C++.
3.
Logic Paradigm:
· Focuses on declarative logic and solving problems using predicates.
· Example: Prolog.
4.
Functional Paradigm:
· Avoids side effects and mutable states, emphasizing function evaluation.
· Examples: Haskell, Scala, Lisp.
Additional Knowledge
·
Declarative Programming: Focuses on what the program should accomplish rather than how.
·
Hybrid Paradigms: Languages like Python and JavaScript support multiple paradigms (e.g., procedural, functional, OOP).
·
Procedural vs Object-Oriented: Procedural programming focuses on routines or procedures, whereas OOP revolves around objects and methods.