Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which predicate tests to see if its first argument is an element of its second argument?
  1.    EQ
  2.    =
  3.    MEMBER
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> MEMBER




Question 2. What is the output of the following statement?span class="sy0"> * (mapcar #'= '(1 2 3) '(3 2 1))
  1.    NIL T NIL
  2.    T NIL
  3.    T NIL T
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> NIL T NIL




Question 3. What are the three functions required by LISP?
  1.    Name of the function
  2.    Parameters of the function
  3.    Body of the function
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 4. The original LISP machines produced by both LMI and Symbolics were based on research performed at:
  1.    CMU
  2.    MIT
  3.    Stanford University
  4.    RAMD
 Discuss Question
Answer: Option B. -> MIT




Question 5. Which is used to produce a procedure object from a procedure name?
  1.    EQ
  2.    #
  3.    EQUAL
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> #




Question 6. What is the output of the given statement?*(setf sentence '(a rough road leads to stars))*(member 'stars sentence)
  1.    Stars
  2.    Road
  3.    Sentence
  4.    Leads
 Discuss Question
Answer: Option A. -> Stars




Question 7. What is the output of the following statement?span class="sy0"> * (mapcar #'oddp '(1 2 3))
  1.    T NIL
  2.    NIL
  3.    T
  4.    T NIL T
 Discuss Question
Answer: Option D. -> T NIL T




Question 8. Which forms offer an alternative to the recursive transformation cliche?
  1.    Mapcar
  2.    Maplist
  3.    Mapdata
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Mapcar




Question 9. What is the programming structure for LISP?
  1.    Atom
  2.    Lists
  3.    String
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 10. What is the output of the given statement?span class="sy0"> * (setf pairs '((maple shade) (apple fruit)))* (member '(maple shade) pairs)
  1.    Shade
  2.    Maple
  3.    T
  4.    Nil
 Discuss Question
Answer: Option D. -> Nil




Latest Videos

Latest Test Papers