Prolog Flashcards

1
Q

Logic programs are

A

Declarative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Proposition is a

A

Logical statement or query about the state of the universe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why was formal logic developed?

A

To describe propositions with the goal of allowing those formally stated propositions to be checked for validity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What there needs of formal logic can symbolic logic be used for?

A

(1) express propositions
(2) express relationship between propositions
(3) describe how new propositions can be inferred from others that are assumed to be true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is first order predicate calculus used for? What is it a type of.

A

Logic programming, symbolic logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Proposition’s objects are represented by

A

Simple terms (constants or variables)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the simplest type of propositions?

A

Atomic propositions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Logical programming languages are

A

Declarative languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do fact and rule statements correspond to (hint what type of clauses)

A

Headed horn clauses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you write a prolog atom

A

String of letters, digits and underscores stating with lowercase letters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you write variables in prolog

A

Inbound entitle

Starts with an upper caps letter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Facts in prologare (3)

A

Assumed to be true, contains to variables and stored in database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly