chinese food 3

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

Which logical connectives are used to write a rule in prolog?

Implication & conjunction

2
New cards

What is important to know about Prolog’s “negation as failure”?

a)Prolog’s negation is only logically sound when there are no disjunctions in the negated expression
b)Prolog’s negation is only logically sound if all variables in the negated expression are ground
c)Prolog’s negation is only logically sound when it’s applied to a literal

Prolog’s negation is only logically sound if all variables in the negated expression are ground

3
New cards

How many solutions will Prolog provide for a query?

A)One for each literal in the query
B)Just one, unless the user requests more
C)All possible solutions

Just one, unless the user requests more

4
New cards

What are the two main programing paradigms?
A)Procedural vs Object Oriented
B)Imperative vs Declarative
C)Functional vs Logic
D)Static vs Dynamic

Imperative vs Declarative

5
New cards

What is the Prolog logic programing language based on?

A)Modal logic
B)Intuitionistic logic
C)Predicate logic
D)Propositional logic

Predicate logic

6
New cards

The syntax of Prolog is composed of:

-variables
-atoms
-functors
-implications
-conjunctions

[there is more than one answer]

-Atoms
-Functors
-implications
-conjunctions

7
New cards

Prolog’s SLD resolution algorithm is

a)A breadth first tree search algorithm
b)A Monte Carlo tree search algorithn
c)A depth first tree search algorithm
d)A linear search algorithm

A depth first tree search algorithm

8
New cards

What is the return type of a generator written in C# that yields values of some type T?

IEnumerable<T>

9
New cards

What are the advantages of the “generator pattern?”

All of the above

10
New cards

What kind of data can be queried with LINQ

All of the above

11
New cards

Initialized static variables

Data segment

12
New cards

Local Variables

Stack

13
New cards

The machine instructions of the executable

Text segment