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))
* (setf (person-surname person-instance-1) ‘winston)
a) Winston
b) Nil
c) T
d) Error



 What is the output of the given statement? * (defstruct person (sex nil) (personality ‘..

Answer / chaitanya

d

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 Mention what are the two pre-defined packages used in LISP?

1 Answers  


Which is used to represent the prompt in lisp? a) # b) $ c) & d) *

1 Answers  


What is the process of arranging procedures into layers? a) Procedure b) Abstraction c) Abstraction layers d) Procedure abstraction

1 Answers  


Explain List of programming languages for artificial intelligence?

0 Answers  


Which enables storage in procedurally indexed places in LISP? a) Defstruct b) Object c) Structure d) None of the mentioned

1 Answers  






 How data types are categorized in LISP?

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)) * (setf (person-surname person-instance-1) ‘winston) a) Winston b) Nil c) T d) Error

1 Answers  


Why LISP is used for Artificial Intelligence?

1 Answers  


 Explain what is SWI-Prolog?

1 Answers  


 What is partly embedded in the knowledge of your programming for manipulating applications? a) Programming cliches b) Procedures c) Abstraction d) Data

1 Answers  


 Which keyword is used to construct an array in LISP? a) Array b) Make-array c) Bins d) Make

1 Answers  


 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  


Categories