The president has bragged of acing three cognitive tests.