Exam 4: Logic Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Automated deduction systems have difficulty handling all of first-order predicate calculus.

Free
(True/False)
4.8/5
(28)
Correct Answer:
Verified

True

Logical statements can be used as formal specifications for the required behavior of programs.

Free
(True/False)
4.7/5
(33)
Correct Answer:
Verified

True

The specific path that an automatic deduction system chooses to derive a statement is the ____ for a logic programming system.

Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
Verified

C

In Prolog,the cut operator is used to ____.

(Multiple Choice)
4.7/5
(36)

The closed-world assumption is that all solutions ____ or are assumed false.

(Multiple Choice)
4.8/5
(39)

A list is written in Prolog using ____ to enclose the items.

(Multiple Choice)
5.0/5
(38)

In Prolog,arithmetic terms can be written in either infix notation or prefix notation.

(True/False)
4.8/5
(32)

To force Prolog to perform loops and repetitive searches,we must force backtracking even when a solution is found by using the built-in predicate ____.

(Multiple Choice)
4.8/5
(38)

Logical statements can be either true or false.

(True/False)
4.7/5
(36)

The set of logical statements that are taken to be axioms can be viewed as the ____.

(Multiple Choice)
4.7/5
(45)

Prolog is the most widely used logic programming language.

(True/False)
4.9/5
(30)

In Prolog,you can specify the head and tail of a list using a backslash.

(True/False)
4.9/5
(51)

Every logical statement can be turned into Horn clauses.

(True/False)
4.9/5
(39)

To force evaluation of an arithmetic term in Prolog,you must use the built-in predicate ____.

(Multiple Choice)
4.8/5
(36)

The semantics of programming language constructs is called ____.

(Multiple Choice)
4.9/5
(42)

Horn clauses can be viewed as specifications of procedures rather than strictly as implementations.

(True/False)
4.8/5
(37)

In the Horn clause a₁ and a₂ and a₃ → b,the portion a₁ and a₂ and a₃ is called the ____.

(Multiple Choice)
5.0/5
(38)

Most Prolog systems are run as interpreters,not compilers.

(True/False)
4.9/5
(43)

The existential quantifier is used to represent all things in the universe that exist.

(True/False)
4.9/5
(34)

Horn clauses cannot be given a procedural interpretation.

(True/False)
4.7/5
(40)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)