Quiz Stuff

Quiz 10; March 29; Three minutes; 2+2+1+1 points

  1. Briefly describe what's printed by this query:
    ?- append(A,B,[a,b,c,d,e]), writeln(A-B), fail.
    
    Note: Don't write out all six lines of output, just summarize it.
  2. Name two distinctly different computations that the predicate length(?List,?Len) can perform.
  3. What's the name of any higher-order Prolog predicate that's been mentioned in class?
  4. Fill in the blanks:
    On Monday we talked about a puzzle involving finding a sequence
    of _______s to cross over a series of ______s.

EC (1 point): Write a good extra-credit question about Prolog and answer it.