The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+11 votes

A common property of logic programming languages and functional languages is:

  1. both are procedural languages 

  2. both are based on $\lambda$-calculus

  3. both are declarative

  4. both use Horn-clauses

asked in Programming by Veteran (52k points)
recategorized by | 2.1k views

3 Answers

+9 votes
Best answer

Answer : both are declarative
Major logic programming language families include Prolog, Answer set programming (ASP) and Datalog. In all of these languages, rules are written in the form of clauses
Prolog is a Declarative Language .
Functional programming is a declarative programming paradigm, which means programming is done with expressions or declarations instead of statements.
Reference : for both that Prolog is a Declarative Language .and comes under logic programming languages and Functional programming is a declarative programming paradigm is Here

answered by Active (1.4k points)
selected by
0 votes
ans c)
answered by Loyal (5.2k points)
0 votes

Answer is (C)

Functional and logic programming languages are also called declarative languages; programs in these languages are said to describe (declaratively) what to do and not (operationally) how to do it.  

Reference :


answered by Active (3.3k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,535 questions
54,122 answers
71,040 users