Prolog - Lab Quiz

Prolog - Lab Quiz

University

6 Qs

quiz-placeholder

Similar activities

RM Unit 3

RM Unit 3

University

10 Qs

SDLC -SQL

SDLC -SQL

University

11 Qs

KUIZ TOPIK 3 REKABENTUK FORM DAN REPORT

KUIZ TOPIK 3 REKABENTUK FORM DAN REPORT

University

10 Qs

Scheme

Scheme

University

11 Qs

PHP & MySQL - parte 2

PHP & MySQL - parte 2

9th Grade - Professional Development

10 Qs

DBI202-quiz1-RA

DBI202-quiz1-RA

University

8 Qs

Prolog - Lab Quiz

Prolog - Lab Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Pradeep Isawasan

Used 7+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the result of the following Prolog query?

X = ice_cream

X = chocolate

X = pizza

False

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the following Prolog rule do?

It defines X and Y as the children of Z.

It defines X and Y as siblings if they share the same parent Z and are not the same person.

It checks if X is a parent of Y.

It checks if X and Y are unrelated.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the possible values of X?

X = cat; X = fish;

X = dog;

X = dog; X = cat;

X = fish;

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the result of the following Prolog query?

X = chocolate

X = pizza

X = ice_cream

False

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will the query ?- ancestor(john, susan). return?

False

True

Error

ancestor(susan, john)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of the query ?- path(a, X).?

X = b

X = c

X = d

X = b; X = c; X = d;