Choose the best matching between the programming styles in Group 1 and their characteristics in Group 2.
|Q.||Logic||2.||Imperative, abstract data type|
|R.||Object-oriented||3.||Side-effect free, declarative, expression evaluation|
|S.||Imperative||4.||Declarative, clausal representation, theorem proving|
(A) P-2, Q-3, R-4, S-1
(B) P-4, Q-3, R-2, S-1
(C) P-3, Q-4, R-1, S-2
(D) P-3, Q-4, R-2, S-1
Explanation: P: Functional Programming is declarative in nature, involves
expression evaluation, & side effect free.
Q: Logic is also declarative but involves theorem proving.
R: Object oriented is imperative statement based & have abstract
(general) data types.
S: Imperative: The programs are made giving commands & follows
definite procedure & sequence
Quiz of this Question