• recategorized by
15,347 views
13 13 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

3 Answers

Best answer
10 10 votes

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

• selected by
8 8 votes

Answer is A) Both are Declarative 

Answer:
Position:
Show:

Related questions

58 58 votes
8 8 answers
18.7k
18.7k views
Ishrat Jahan asked Nov 3, 2014
18,738 views
A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. When ...
45 45 votes
6 answers 6 answers
18.9k
18.9k views
Ishrat Jahan asked Oct 29, 2014
18,943 views
Consider a weighted, undirected graph with positive edge weights and let $uv$ be an edge in the graph. It is known that the shortest path from the source vertex $s$ to $u...
88 88 votes
7 answers 7 answers
38.8k
38.8k views
Rucha Shelke asked Sep 26, 2014
38,781 views
A computer system supports $32$-bit virtual addresses as well as $32$-bit physical addresses. Since the virtual address space is of the same size as the physical address ...
36 36 votes
4 answers 4 answers
21.4k
21.4k views
Kathleen asked Sep 22, 2014
21,399 views
A CPU generally handles an interrupt by executing an interrupt service routine:As soon as an interrupt is raised.By checking the interrupt register at the end of fetch cy...