Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match of the following is :

(1) C(M) Imperative
(2) Java(N) Functional
(3) Lisp(O) Object oriented
(4) Prolog(P) Constraint based

  • A.1 - M, 2 - O, 3 - N, 4 - P
  • B.1 - M, 2 - P, 3 - O, 4 - N
  • C.1 - P, 2 - O, 3 - M, 4 - N
  • D.1 - M, 2 - N, 3 - O, 4 - P

Answer: A

The correct match is 1 - M, 2 - O, 3 - N, 4 - P.

  • C is an imperative (procedural) language: programs are sequences of statements that change state.
  • Java is object oriented: everything is organised in classes and objects.
  • Lisp is the classic functional language, built on function application and lists.
  • Prolog is a logic language in which a program states facts and rules as constraints, and execution searches for values that satisfy them.

The other options call Java constraint based, Lisp object oriented or Prolog functional, which mismatch these well-known paradigms.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.