On 12/2/14, 6:41 PM, Vladimir Panteleev wrote:

Enter DCaptcha

I think this could work with just two or three variants of a question. Always ask what's the return value of the function.

1. int foo() { return 8 % 3; }

I don't think non-programmers know what that '%' symbol is, but programmers of any language would recognize this.

2. int foo() { int x = 8; x++; x++; return x; }

I don't think non-programmers would guess ++ is increment, but programmers most probably know it.

3. bool foo() { return 42 != 30 };

I don't think non-programmers know what "!=" is.




Reply via email to