A District of Columbia landlord was convicted in D.C. Superior Court yesterday of two violations of the city's housing code and placed on probation for one year in connection with an electricity cutoff last November at properties he owns in Southwest Washington.

Judge DeWitt S. Hyde, who found Alfred L. Black guilty after a brief trial, suspended a sentence of $300 and 10 days on each count pro ided Black maintains utility service at the properties, located at 10 through 18 and 100 through 126 Danbury street, SW.

The Potomac Electric Power Company said it cut off service there Nov. 21 for six hours because Black owes $14,700 in electric bills.

During the trial yesterday, Assistant Corporation Counsel Mark S. Mann disclosed that the Washington Gas Light Company turned off service at the same locations for several hours Monday. A company spokesman said yesterday that $5,000 is owed for service there. The city government has agreed to assume the cost of service for the next 10 days, according to housing official Arnold Young.

Black's attorney, Bernadette Gartrell, said yesterday that her client will appeal Judge Hyde's ruling.

While the case has been in court, Pepco has maintained service to the Danbury Street apartments.