Skip to content
Related Articles

Related Articles

GATE | GATE-CS-2004 | Question 90
  • Last Updated : 26 Sep, 2014

Choose the best matching between the programming styles in Group 1 and their characteristics in Group 2.

 Group-1 Group-2
 P. Functional 1. Command-based, proce-dural
 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

Answer: (D)

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


My Personal Notes arrow_drop_up
Recommended Articles
Page :