Quiz Stuff
Use a
full sheet
of 8½ x 11" paper. (Half sheet? Half credit!)
Put your last name and first initial in the
far upper left hand corner
!
No need to write out questions.
Numbering responses may help you avoid overlooking a question; it's ok to go ahead and pre-number your sheet.
Time: three minutes; four questions worth 2+2+1+1 points and a half-point EC.
Quiz 10; March 29; Three minutes; 2+2+1+1 points
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.
Name two distinctly different computations that the predicate
length(?List,?Len)
can perform.
What's the name of any higher-order Prolog predicate that's been mentioned in class?
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.