What is the output of the following statement?
* (setf meals ‘(breakfast lunch tea dinner))
* (first meals)
a) Breakfast
b) Lunch
c) Tea
d) Dinner



 What is the output of the following statement? * (setf meals ‘(breakfast lunch tea dinn..

Answer / chaitanya

a

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 What is the output of the given statement in LISP? * (Setf part-bins (make-array ‘(4))) a) #Done b) #4 c) #(0 0 0 0) d) None of the mentioned

1 Answers  


Mention why you have to use “is” instead of “=” in Prolog when it comes to applying calculation logic?

1 Answers  


 Explain why PROLOG language is stated as a procedural language?

1 Answers  


Explain with an example what is “Setof” predicate in Prolog?

1 Answers  


Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF

1 Answers  






Which creates reader procedures for getting things out of an instance fields? a) Structure in LISP b) Defstruct c) Class d) Object

1 Answers  


Why LISP is used for Artificial Intelligence?

1 Answers  


What is the output of the following statement? * (defun (input-list) (if (endp input-list) nil (cons ( (first input-list)) ( (rest input-list))))) a) Procedure b) Transforming c) Input d) Error

1 Answers  


What are the different nlp tasks deep learning can be applied?

0 Answers  


 Explain what is SWI-Prolog?

1 Answers  


What is the difference between the appearance of macro and ordinary definition in LISP? a) Argument list b) Reture value c) Just the defining keyword d) None of the mentioned

1 Answers  


What is the output of the given statement? * (defstruct person (sex nil) (personality ‘nice)) * (setf person-instance-1 (make-person)) * (setf person-instance-2 (make-person :sex ‘female)) * (person-p ‘(this is a list — not a person instance)) a) Female b) Nice c) T d) Nil

1 Answers  


Categories