Which abstractions have a prescribed behavior?
a) Auxiliary procedures
b) Procedure abstraction
c) Primary procedures
d) None of the mentioned
Why in prolog it is said that Program and Data are the same thing?
What is the process of arranging procedures into layers? a) Procedure b) Abstraction c) Abstraction layers d) Procedure abstraction
Explain with an example what is “Setof” predicate in Prolog?
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
Which is used to build the lisp procedures? a) Data b) Primitives c) Definition d) None of the mentioned
Which is uses their arguments to build intermediate forms and evaluating them to produce a value? a) Backquote b) Macros c) List d) Procedures
What is the other name of boxes in LISP? a) Cons cells b) Conses c) Both a & b d) None of the mentioned
Which is used to represent the prompt in lisp? a) # b) $ c) & d) *
What is the output of the given statement in LISP? * (setf part (make-array ‘(8 8))) a) 8 b) 0 0 0 0 0 0 0 0 c) 0 0 0 0 d) 8 rows of 0
What is the output of the given statement? * (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author))) * (defclass computer-article (article) ()) * (defclass business-article (article) ()) * (defclass political-article (article) ()) * (setf articles (list (make-instance ‘business-article :title “Memory Prices down”))) a) Business article b) Political article c) Business article
Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) Defstruct d) None of the mentioned
Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned