Lab Test 2

You can access the questions for the second lab test here: Friday and Monday.

A model solution for the Friday lab test can be found here: script and C program.

A model solution for the Monday lab test can be found here: script and C program.

These are only one possible solution, there are many other ways to do the same task.

Lab Test 1

You can access the questions for the first lab test here: Friday and Monday.

A model solution for the two lab tests can be found here: Friday and Monday. They are only one possible solution, there are many other possibilities.

You can find all test inputs and expected outputs here: Friday and Monday.

If a test case output contains the phrase timeout waiting for child this means that your program crashed (or less likely has an infinite loop).

If a test case output contains the phrase Binary files ... differ this means that your program printed out garbage values.

Lab Test Rules

Academic Honesty

"Academic honesty is essentially giving credit where credit is due. And not misrepresenting what you have done and what work you have produced. When a piece of work is submitted by a student it is expected that all unquoted and uncited ideas and text are original to the student. Uncited and unquoted text, diagrams, etc., which are not original to the student, and which the student presents as their own work is considered academically dishonest."
- Department of Computer Science and Engineering Academic Honesty Guidelines

We use MOSS (Measure Of Software Similarity) to detect software plagiarism.