Dressing as a girl to take a high school Regents exam in place of another student landed a 17-year-old upstate New York boy in some serious detention.

Deandre Ellis, 17, of Schenectady was arrested on a felony charge after the incident Tuesday. City school officials say a monitor verifying that each student was taking the proper exam suspected something was amiss when the name on the test and the person taking it didn't match.

District spokeswoman Karen Corona says a closer look revealed the test-taker was a boy masquerading as a girl.

Police say Ellis, who was released to probation authorities, was charged with burglary for entering the school to commit a crime. His public defender didn't immediately return a phone call or e-mail seeking comment.