What is the output of the given statement in LISP?
* (Setf part-bins (make-array ‘(4)))
* (setf (aref part-bins 0) ‘nails);
* (setf (aref part-bins 1) ‘nuts);
* (setf (aref part-bins 2) ‘bolts)
* (setf (aref part-bins 3) ‘bike)
* (aref part-bins 2)
* (setf (aref part-bins 4) ‘car)
a) Nails
b) Nuts
c) 2
d) Error
What is the output of the following statement? * ( first (rest (first ‘((a b) (c d))))) a) a b) b c) c d) d
What will happen if the value of all the test-forms are nil? a) Nothing b) COND form is nil c) Both a & b d) None of the mentioned
Which can build new lists by depositing pointers in free boxes? a) Do b) Dobuild c) Cons d) None of the mentioned
What is the output of the given statement? * (defmethod area ((figure rectangle)) (* (rectangle-width figure) (rectangle-height figure))) a) Area b) Rectangle c) Height d) Error
What does the language of fopl consist of?
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) Defstruct d) None of the mentioned
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 partly embedded in the knowledge of your programming for manipulating applications? a) Programming cliches b) Procedures c) Abstraction d) Data
In “cuts” what is the Parent goal in Prolog?
What is the output of the following statement? * (+ 3.14 2.71) a) 3.14 b) 2.71 c) 5.84 d) 5.85
Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers