What is the output of the following statement?
* (setf p .6)
* (cond ((> p .75) ‘very-likely)((> p .5) ‘likely)((> p .25) ‘unlikely)(t ‘very-unlikely))
a) Very-likely
b) Likely
c) Unlikely
d) Very-unlikely
What is the output of the following statement? * (first ‘( p h w)) a) P b) H c) W d) phw
Explain what is SWI-Prolog?
How the clause is called if it contains a test, as well as zero or more additional forms in LISP? a) Conditional b) Consequents c) Clause d) None of the mentioned
Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) Defstruct d) None of the mentioned
Mention what is the difference between Prolog and normal programming language?
What is a data type in which expressions are stored in places identified by integer indexes in LISP? a) Structure b) List c) Array d) None of the mentioned
Which enables storage in procedurally indexed places in LISP? a) Defstruct b) Object c) Structure d) None of the mentioned
Which is a procedures supplied by user in terms of primitives? a) Custom b) User-defined c) Definite d) All of the mentioned
Explain what is LISP? Give an example of some of the popular applications built in LISP?
Which hides details behind abstraction boundaries? a) Procedures b) Procedure abstraction c) Recursion d) Both a & b
What is the programming structure for LISP?
Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming