The formula C4H8 shows that it has degree of unsaturation as one. And since it react with KMnO4 in acidic medium then it should be an alkene. Only the terminal alkene gives effervescence of carbon dioxide gas. So, it should be a terminal alkene. and other product is ketone so, it should have a 3 degree carbon too. Based on these we can say that the A is
