Multiple choice

What is common between a logic programming language and a functional language?

  1. Both are procedural

  2. Both are based on lambda calculus

  3. Both are declarative

  4. Both use Horn Clause

  5. Both are imperative

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Declarative programming is a non-imperative style of programming in which programs describe their desired results without explicitly listing commands or steps that must be performed. Functional and logical programming languages are characterized by a declarative programming style.