Last Updated: 2009 November 30
Test questions
Test questions can be based on the following sources: (1) the textbook(s), (2) readings, (3) classes, (4) reports, (5) exercises, and (6) on-line notes and slides. They are based on topics from the beginning of the year up to and including the class before the test.
Consider all concepts and terminology used in the text book, reports, slides and classes and ask the typical questions - how, why, when, where and what -- individually and in combination. In particular, variations are based on "describe", "explain", "define", "what is meant by", etc. Some programming exercises in the example programming exercises have been and may be asked as test questions.
- Test instructions for class tests and the final examination. It is useful to become familiar with them.
- Lisp description questions
- Lisp basic questions
- Lisp functional questions
- Lisp macro questions
- Prolog description questions
- Prolog basic questions
- Prolog accumulator questions
- Prolog cut and not questions
- Prolog chat questions
- Prolog operator questions
- Prolog logic questions
Example programs
Example programs used as examples and in reports. The files are *.tar.gz files.
Lisp programs
contains the following
- database.lsp -- the database program in Chapter 22 of Common LISPcraft.
- database-examples.lsp -- example queries that show the use of the database functions in database.lsp.
- exercise-N_explanation.text -- a brief explanation of the following two files.
- exercise-N.lsp -- an example that shows how, within one file, Lisp functions
can be defined, and tested with the function print-test.lsp
- exercise-N.test -- the output produced by running clisp on the previous file.
- functionals-base.lsp -- a collection of support functions for the functionals in the following file.
- functionals.lsp -- a collection of functionals for use in the course.
- matcher.lsp -- the matcher program from Chapter 21 in Common LISPcraft.
- print-test.lsp -- the function you use to help you test your Lisp programs.
- random.lsp -- an example of a Lisp program comprising many functions.
Prolog programs
contains the following
- binaryTree.pro -- an example definition of a binary tree
- chat-example.pro -- an example program demonstrating how English sentences can be used to construct Prolog queries.
- chatBasis.pro -- the support environment used to produce program such as in chatExample.pro.
- cuttest.pro -- examples that show the effects of the cut operator '!'.
- engFreDictionary.pro -- example predictes showing how you can define prefix, postfix and infix operators in Prolog.
- exercise-N.pro -- an example that shows how, within one file, Prolog
predicates can be defined, and tested using PL-unit.
- maze.pro -- example predicates showing show a graph search program can be developed and various problems that can occur.
- ring.pro -- example predicates based on Wagner's ring cycle operas that you can use to experiment with.
- set-print-options.pro -- a predicate that changes the amount of a list that will be displayed.
- tower.pro -- example predicates showing how compound structures are used to build data structures.
- utilities.pro -- predicates showing the definitions of some utility predicates in Prolog.