Exam 4: Logic Programming
Exam 1: Introduction50 Questions
Exam 2: Language Design Criteria50 Questions
Exam 3: Functional Programming50 Questions
Exam 4: Logic Programming50 Questions
Exam 5: Object-Oriented Programming50 Questions
Exam 6: Syntax50 Questions
Exam 7: Basic Semantics50 Questions
Exam 8: Data Types50 Questions
Exam 9: Control I - Expressions and Statements50 Questions
Exam 10: Control II - Procedures and Environments50 Questions
Exam 11: Abstract Data Types and Modules50 Questions
Exam 12: Formal Semantics50 Questions
Exam 13: Parallel Programming51 Questions
Select questions type
Automated deduction systems have difficulty handling all of first-order predicate calculus.
Free
(True/False)
4.8/5
(28)
Correct Answer:
True
Logical statements can be used as formal specifications for the required behavior of programs.
Free
(True/False)
4.7/5
(33)
Correct Answer:
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:
C
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)
The set of logical statements that are taken to be axioms can be viewed as the ____.
(Multiple Choice)
4.7/5
(45)
In Prolog,you can specify the head and tail of a list using a backslash.
(True/False)
4.9/5
(51)
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)
The existential quantifier is used to represent all things in the universe that exist.
(True/False)
4.9/5
(34)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)