A typical Scheme exam question
Note: this should not be taken seriously.
Define a procedure square that takes an argument x and returns its square.
(12 marks)
Answer and marking scheme
(define (square x) (* x x))
4 marks for putting * x x in brackets
4 marks for putting square x in brackets
4 marks for putting everything in brackets
OR
(define square (lambda (x) (* x x)))
3 marks for putting * x x in brackets
3 marks for putting the first x in brackets
3 marks for putting lambda (x) (* x x) in brackets
3 marks for putting everything in brackets
By the way, in the real exam, which did not contain this question, I got 78% of the brackets in the right place despite going to SAD (now called Game On) the night before!