Musadiq Ahmed and Ahsan Hassan were accused of killing the Class 5 student after allegedly raping him in Sahiwal district, some 230 km from Lahore, in November last year.
Initially, the police had registered the case on charges of murder, kidnapping and unnatural offences under the Pakistan Penal Code.
But after the protest by the survivor's family and locals, the police also included terrorism sections in the FIR and the suspects were prosecuted in an anti-terrorism court (ATC) here.
According to the FIR, the convicts and the survivor studied in same academy in a village in Sahiwal. On November 7, 2016, the convicts on returning from the academy, kidnapped the minor boy and took him to a deserted place where they allegedly killed him after raping him.