Artificial intelligence has changed the way people study and is now forcing exams to be redesigned. Universities and schools are seeking new ways to test what students really know.