Match List I with List II \(\begin{array}{|c|l|c|l|l|} \hline \text{List I} &…
2021
Match List I with List II
\(\begin{array}{|c|l|c|l|l|} \hline \text{List I} & \text{List II} \\ \hline \text{(Programming Paradigm)} & \text{(Characteristic)} \\ \hline \text{A. Imperative} & \text{I. Declarative, clausal representation, theorem proving} \\ \hline \text{B. Object‐oriented} & \text{II. Side‐effect free, declarative, expression evaluation} \\ \hline \text{C. Logic} & \text{III. Imperative, abstract data type} \\ \hline \text{D. Functional)} & \text{IV. Command‐based, procedural} \\ \hline \end{array}\)
Choose the correct answer from the options given below:
- A.
A ‐ IV, B ‐ III, C ‐ I, D ‐ II
- B.
A ‐ III, B ‐ IV, C ‐ I, D ‐ II
- C.
A ‐ IV, B ‐ III, C ‐ II, D ‐ I
- D.
A ‐ II, B ‐ III, C ‐ I, D ‐ IV
Attempted by 309 students.
Show answer & explanation
Correct answer: A
Answer: Imperative → command-based, procedural; Object-oriented → imperative with abstract data type (encapsulation); Logic → declarative, clausal representation and theorem proving; Functional → side-effect free, declarative expression evaluation.
Imperative corresponds to command-based, procedural programming because it focuses on statements that change program state and the sequence of commands.
Object-oriented corresponds to abstract data types and encapsulation since it organizes code around objects that combine data and behavior.
Logic corresponds to declarative, clausal representation and theorem proving because programs are expressed as logical clauses and computation is performed by inference.
Functional corresponds to side-effect free, declarative expression evaluation because computations are expressions without mutable state and functions are first-class.
A video solution is available for this question — log in and enroll to watch it.