Artificial Intelligence (2180703) MCQs

MCQs of Introduction to Prolog

Showing 11 to 20 out of 23 Questions
11.
Why We Use Prolog Programming Language?
(a) SWI-Prolog is free, open-source, and very well maintained.
(b) It’s much much easier to distribute SWI-Prolog applications than Java ones
(c) Prolog is much less verbose,which is helpful when during development.
(d) all of the above
Answer:

Option (d)

12.
Is It Possible To Change Standard Behaviour Of Prolog Interpreter (first Rule, The Most Left Subgoal)?
(a) TRUE
(b) FALSE
Answer:

Option (a)

13.
What Is It A Meta-program?
(a) Meta-program is a program that uses other program as its data.
(b) Meta-program is a program metadata information.
(c) Meta-program is program information.
(d) None of above
Answer:

Option (a)

14.
"L = ['yellow', 'red', 'blue', 'green', 'black'] L[1:4] return?"
(a) ['red', 'blue', 'green']
(b) ['blue', 'green', 'black']
(c) ['yellow', 'red']
(d) None of above
Answer:

Option (a)

15.
what is the use of "halt" inbuilt predicated?
(a) used to suspend the prolog system.
(b) used to terminate the Prolog system.
(c) used to resume the prolog system.
(d) None of above
Answer:

Option (b)

16.
Prolog is a strongly typed language
(a) TRUE
(b) FALSE
Answer:

Option (b)

17.
The scope of a variable in Prolog is a single clause (i.e., a fact or rule) or a single query.
(a) TRUE
(b) FALSE
Answer:

Option (a)

18.
"Unification is transitive (i.e., assuming that t1, t2 and t3 are arbitrary Prolog terms, if t1 unifies with t2 and t2 unifies with t3 then t1 must unify with t3. "
(a) TRUE
(b) FALSE
Answer:

Option (b)

19.
A variable in Prolog must start with either an upper-case letter or an underscore (_).
(a) TRUE
(b) FALSE
Answer:

Option (a)

20.
A Prolog variable can only be assigned to a value once
(a) TRUE
(b) FALSE
Answer:

Option (a)

Showing 11 to 20 out of 23 Questions