+1 vote
in Artificial Intelligence by
In LISP, what is the function (list-length <list>)?

(a) returns a new list that is equal to &lt:list> by copying the top-level element of <list>

(b) returns the length of <list>

(c) returns t if <list> is empty

(d) all of the mentioned

This question was posed to me in an interview for job.

Enquiry is from Facts in chapter Introduction to Artificial Intelligence of Artificial Intelligence

Select the correct answer from above options

Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answer

0 votes
by
Correct option is (b) returns the length of <list>

For explanation I would say: None.

Related questions

+1 vote
asked Oct 20, 2021 in Artificial Intelligence by DavidAnderson
+1 vote
asked Oct 20, 2021 in Artificial Intelligence by DavidAnderson
...