187k views
2 votes
Match the programming paradigms (list i) with their characteristics (list ii).

List i:
a. imperative
b. object-oriented
c. logic
d. functional

List ii:
i. declarative, clausal representation, theorem proving
ii. side-effect free, declarative, expression evaluation
iii. imperative, abstract data type
iv. command-based, procedural

A. a - ii, b - iii, c - i, d - iv
B. a - iii, b - iv, c - i, d - ii
C. a - iv, b - iii, c - i, d - ii
D. a - iv, b - iii, c - ii, d - i

User Ophychius
by
8.1k points

1 Answer

4 votes

Final answer:

The correct answer to match the programming paradigms with their characteristics is C. a - iv, b - iii, c - i, d - ii.

Step-by-step explanation:

The student has asked to match programming paradigms with their characteristics. Here are the correct matches: Imperative programming is characterized by command-based, procedural code, where programmers write sequences of commands for the computer to perform.

Object-oriented programming involves the use of abstract data types, encapsulation, inheritance, and polymorphism and is thus about structuring programs as a collection of objects. Logic programming is declarative, uses a clausal representation, and is based on theorem proving, where the computer searches through a space of possible solutions.

Functional programming is characterized by being side-effect free and declarative, focusing on the evaluation of expressions rather than execution of commands. Therefore, the correct answer to the student's question is C. a - iv, b - iii, c - i, d - ii.

User Fedor  Petrov
by
8.0k points