A very intelligent and usually studious, erudite person.
quiz kid
noun
A very intelligent or accomplished child or young person, especially one who demonstrated his or her knowledge and quick thinking on radio or television programs in the mid-20th century.
How often have the words brainiac and quiz kid occurred in a corpus of books? (source: Google Ngram Viewer )