Prolog - Lab Quiz

Prolog - Lab Quiz

University

6 Qs

quiz-placeholder

Similar activities

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

VITAP Quiz-1

VITAP Quiz-1

University

10 Qs

Abhyudaya coding class -  Grade 7

Abhyudaya coding class - Grade 7

6th Grade - University

10 Qs

WN-CELLULAR CONCEPT

WN-CELLULAR CONCEPT

University

10 Qs

UTB - FCNS 221PB

UTB - FCNS 221PB

University

10 Qs

Reading and Reviewing - Research Seminar

Reading and Reviewing - Research Seminar

University

10 Qs

DE quiz based on unit 1 & 2

DE quiz based on unit 1 & 2

University

10 Qs

Software Engineering :TEST 2

Software Engineering :TEST 2

University

10 Qs

Prolog - Lab Quiz

Prolog - Lab Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Pradeep Isawasan

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?