recategorized by
12,564 views
13 votes
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

recategorized by

3 Answers

Best answer
10 votes
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
6 votes
6 votes

Answer is A) Both are Declarative 

Answer:

Related questions

11.6k
views
7 answers
43 votes
Ishrat Jahan asked Nov 3, 2014
11,550 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 ... mode in which the signal handling routine executes?User modeKernel modeSuperuser modePrivileged mode
11.8k
views
4 answers
34 votes
Ishrat Jahan asked Oct 29, 2014
11,803 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$ has weight ... $(u,v) = 12$Weight $(u,v) \geq 12$Weight $(u,v) > 12$
27.1k
views
6 answers
66 votes
Rucha Shelke asked Sep 26, 2014
27,120 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 ... for memory management is no longer neededCPU scheduling can be made more efficient now
16.2k
views
4 answers
26 votes
Kathleen asked Sep 22, 2014
16,180 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 current instruction.By checking the interrupt register at fixed time intervals.