adplus-dvertising
frame-decoration

Question

What is the output of the following statement?
span class="sy0"> * (setf whole-list '(monday tuesday wednesday thursday friday))
* (defun both-ends ()(setf whole-list (cons (first whole-list) (last whole-list))))

a.

Monday

b.

BOTH-ENDS

c.

Friday Monday

d.

Monday Friday

Answer: (b).BOTH-ENDS

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 statement?

Similar Questions

Discover Related MCQs

Q. In LISP, symbol represents a _____

Q. Which primitive is used to define a procedure?

Q. Can the parameters be passed to procedures in LISP?

Q. Can the actual parameters and formal parameters be of same name?

Q. Does value of an actual parameter change in the procedure?

Q. Which arranges for parameters to be bound on entering a procedure?

Q. How does LET generally begins with?

Q. What will happen if a variable had not assigned a value by SETF form?

Q. What is the alternative of LET for parameter binding?

Q. Which helps you to write procedures on complicated things?

Q. What is a procedure that returns a value that signals true or false?

Q. Which primitive tests two arguments to see if their values are the same expression?

Q. Which predicate tests to see if its first argument is an element of its second argument?

Q. What is meant by keyword argument?

Q. Which is used to produce a procedure object from a procedure name?

Q. Which of the following is used by member primitive to compare arguments?

Q. Which among these are the data type predicates?

Q. What is the use of zerop?

Q. Integerp and Zerop will be same __

Q. In clause what the zero or more additional forms are called?