Mention how many types of variables available is LISP? Explain what are the variables that are bound, and that have values assigned to them?
Answer / chaitanya
The number of variables available in LISP is two one is lexical variable, and other is special variable. The parameter of procedures is variable which are bound and have values allotted to them.
Is This Answer Correct ? | 1 Yes | 0 No |
What is the output of the following statement? * (defun both-ends-with-special ()(setf whole-list (cons (first whole-list) (last whole-list)))) * (setf whole-list ‘(monday tuesday wednesday thursday friday)) * (both-ends-with-special) a) Monday b) Friday c) Wednesday d) Both a & b
Explain what is LISP constants?
Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers
Mention what is the difference between = and = = in Prolog?
What is the process of creating new data types in lisp? a) List b) Structures c) Procedures d) None of the mentioned
Name the sector where prolog programming language is used?
Mention who is referred as a Member in Prolog?
What are the different nlp tasks deep learning can be applied?
What is the output of the given statement? * (setf toss ‘(heads tails tails tails heads tails)) * (delete ‘heads toss) * toss a) Heads tails b) Heads tails tails tails tails c) Heads d) None of the mentioned
What is the value of last consequent form in the triggered clause? a) Value of the entire COND b) Trigger c) Consequent d) All of the mentioned
Why in prolog it is said that Program and Data are the same thing?
Which exploit the fact that lisp forms are just expressions meant to be evaluated? a) List b) Procedure c) Macro d) None of the mentioned