- 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.
- 3 minutes; 6 ½-point questions, and two ½-point ECs
- All questions are about Prolog except for one Haskell EC.
- Can everybody see this line?
Quiz 6; October 10; 3 minutes; ½-point per question
- Syntactically, is
food(donut).
a fact, a query, or both?
- Is the following query true or false?
atom(x).
- Will the query
write(3+4).
cause 7
to be output?
- How can we quickly tell if an identifier is a Prolog variable?
- Does the ordering of facts in a knowledge base have any meaning? If so, what is it?
- With the "Can you prove?" mindset, what does the query
number(5).
mean?
EC: The following Haskell code-in-progress is already looking buggy! Why?
foldr (\acm elem ->
EC: Tell me a quick fact about the history of Prolog.