A 29-year-old Ukrainian poet whose unpublished verses are sharply critical of the Soviet state was sentenced to a maximum term of seven years in a labor camp and five years' internal exile, dissident sources reported today.

A court in Kiev, the Ukrainian capital, convicted Irina Ratushinskaya after she was found guilty of slandering the state.

She was the second human-rights activist to be given the maximum 12-year term this week. The other was Valery Senderov, 37, a mathematician sentenced by a Moscow court for helping organize an underground independent labor union.

Ratushinskaya, whose poems have not been published here but have circulated in the West and were broadcast by the Voice of America, was charged with having distributed her verses in typescript form, according to the sources. It was not known whether any other charges had been lodged against her.

Reports about her three-day trial were sketchy because both her husband and her other relatives were barred from it.

The sources said that supporters of Ratushinskaya scuffled with security men outside the courthouse and that one of them, Leonid Varvak, a mathematician, was arrested and sentenced to 15 days in jail on charges of hooliganism.

Varvak, who has been denied permission to emigrate to Israel, suffers from diabetes, and the sources quoted his relatives as saying that the authorities have not permitted him to treat his illness in jail.

Ratushinskaya, who regards herself as Polish, referred to the Soviet Union in one verse as "my hateful motherland." A physicist by education, she has lampooned the Soviet educational system and ridiculed the Russians' "serf mentality." She is known here only in a narrow circle of dissidents.