Question
(setf chess '(king queen))
(write (cons 'rook chess))
a.
rook king queen
b.
king queen rook
c.
king queen
d.
rook
Posted under Artificial Intelligence
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of the following LISP program?
Similar Questions
Discover Related MCQs
Q. Are arithmetic operators primitives in LISP?
View solution
Q. What is the output of (/ 6 3) and (- 6 4)?
View solution
Q. Which is used to build the lisp procedures?
View solution
Q. Which primitive removes all but the last element from the list?
View solution
Q. What is a symbol thought of as a name for a place to store value?
View solution
Q. How many types of variables are available in lisp?
View solution
Q. What are the variables that are bound and that have values assigned to them?
View solution
Q. In LISP, symbol represents a _____
View solution
Q. Which primitive is used to define a procedure?
View solution
Q. Can the parameters be passed to procedures in LISP?
View solution
Q. Can the actual parameters and formal parameters be of same name?
View solution
Q. Does value of an actual parameter change in the procedure?
View solution
Q. Which arranges for parameters to be bound on entering a procedure?
View solution
Q. How does LET generally begins with?
View solution
Q. What will happen if a variable had not assigned a value by SETF form?
View solution
Q. What is the alternative of LET for parameter binding?
View solution
Q. Which helps you to write procedures on complicated things?
View solution
Q. What is a procedure that returns a value that signals true or false?
View solution
Q. Which primitive tests two arguments to see if their values are the same expression?
View solution
Q. Which predicate tests to see if its first argument is an element of its second argument?
View solution
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!