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

Discussion

The common property of functional language and logical programming language :

  • A.Both are declarative
  • B.Both are based on λ-calculus
  • C.Both are procedural
  • D.Both are functional

Answer: A

Functional languages such as Lisp and logic programming languages such as Prolog are both declarative: the programmer states what is to be computed or what is true, and the system decides how. Only the functional style is based on the lambda calculus, so the second option is wrong; both are not procedural, which is the style of C or Pascal; and they are not both functional. The answer is that both are declarative, option (A).

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

Post your comment

Please log in or register to post a comment.