Spring 2001, CSE 428: Quiz 10.3 - 11 April 2001


Please write your Name and Student ID at the top of the page. By default, this quiz will be returned in Section 1 (afternoon section).
  1. [Pts 2]   The type 'a list in ML is polymorphic because (only one answer, please)

  2. [Pts 2]   For each of the following functions on 'a list, say whether it is polymorphic or not

  3. [Pts 2]   In logic programming, a rule A :- B1, B2,...,Bn. means (only one answer, please):

  4. [Pts 4]   Consider the following definition of the member-of-a-list predicate:
       memb(X,[X|L]).
       memb(X,[_|L]) :- memb(X,L).
    
    For each of the following queries, please indicate all the answers that are returned (assuming that we interactively keep asking for more answers). If no answers are returned, write "no". If the query generates an error, write "error".