COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following is a logic programming language?
A
C
B
Prolog
C
FORTRAN
D
Lisp
Explanation: 

Detailed explanation-1: -Prolog is a logic programming language associated with artificial intelligence and computational linguistics.

Detailed explanation-2: -Major logic programming language families include Prolog, answer set programming (ASP) and Datalog.

Detailed explanation-3: -Prolog stands for programming in logic. In the logic programming paradigm, prolog language is most widely available. Prolog is a declarative language, which means that a program consists of data based on the facts and rules (Logical relationship) rather than computing how to find a solution.

Detailed explanation-4: -Prolog is a logic programming language, whereas Haskell is a functional language. Functional languages are based on the concept of a function which takes a number of arguments and computes a value. Prolog, on the other hand, does not have functions. Instead, predicates are used to prove a “theorem".

Detailed explanation-5: -Prolog is a logic programming language. It has important role in artificial intelligence. Unlike many other programming languages, Prolog is intended primarily as a declarative programming language. In prolog, logic is expressed as relations (called as Facts and Rules).

There is 1 question to complete.