adplus-dvertising

Welcome to the LISP Programming MCQs Page

Dive deep into the fascinating world of LISP Programming with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of LISP Programming, a crucial aspect of Artificial Intelligence. In this section, you will encounter a diverse range of MCQs that cover various aspects of LISP Programming, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Artificial Intelligence.

frame-decoration

Check out the MCQs below to embark on an enriching journey through LISP Programming. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Artificial Intelligence.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of LISP Programming. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

LISP Programming MCQs | Page 15 of 38

Q141.
What is the output of the following statement?
span class="sy0"> * (setf x 'outside)
* (let ((x 'inside) (y x)) (list x y))
Discuss
Answer: (c).Inside Outside
Discuss
Answer: (d).Any of Data type, data object and data structure
Q143.
Which primitive is used to define a procedure?
Discuss
Answer: (a).defun
Q144.
Can the parameters be passed to procedures in LISP?
Discuss
Answer: (a).Yes
Q145.
Can the actual parameters and formal parameters be of same name?
Discuss
Answer: (a).Yes
Q146.
Does value of an actual parameter change in the procedure?
Discuss
Answer: (c).Sometimes
Q147.
What is the output of the following LISP program? (NOTE: * means new line)
(defun b(p) (+ p p) )
* (setq z 1)
* (b z)
Discuss
Answer: (a).2
Q148.
What will be output of the following LISP program?
(defun b(z) (+ z z) )
* (setq z 1)
* (write b z)
Discuss
Answer: (b).2
Q149.
What will be stored in Z at A & B?
(defun b (z)
z 			(Position A)
(setf z '(u v)) )
* (setf z '(c d))
* (b z)
* z 			(Position B)
Discuss
Answer: (a).(C D) (C D)
Q150.
What is the output of the following LISP program?
(defun raw(p) (if (equal p '(not cooked)) (setq q 'YES) (setq q 'NO)))
(setq rice '(not cooked))
*(raw rice)
Discuss
Answer: (a).YES

Suggested Topics

Are you eager to expand your knowledge beyond Artificial Intelligence? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!