Prolog - Lab Quiz

Prolog - Lab Quiz

University

6 Qs

quiz-placeholder

Similar activities

Mini Quiz Room Android

Mini Quiz Room Android

University

10 Qs

Defensive Design

Defensive Design

KG - Professional Development

7 Qs

WEB DEV - QUIZ #2

WEB DEV - QUIZ #2

University

10 Qs

Quiz No. 2

Quiz No. 2

University

10 Qs

A4 IIIB - Data Query Language II

A4 IIIB - Data Query Language II

11th Grade - University

10 Qs

AJAXploration

AJAXploration

University

10 Qs

SQL Queries

SQL Queries

University

10 Qs

Sistemas expertos

Sistemas expertos

University

6 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;