West Germany and China signed new agreements today expanding economic and cultural ties, and the leaders of the two countries appeared pleased with the understanding developed between them during 10 hours of meetings here during the past three days.

Appearing at a joint press conference, West German Chancellor Helmut Schmidt said his talks with Chinese leader Hua Guofeng revealed a considerable degree of "like-mindedness" and were "impressive and successful."

Although the Chinese leader ruffled some feathers here Monday with a thinly-veiled attack on the Soviet Union at an official dinner, top West German officials privately feel that, given the general impossibility of stopping the Chinese from verbally attacking the Kremlin anywhere, Hua was more discreet here than he was in Paris last week on the first stop of his four-country European trip.

Similarly, they said, the Chinese Communist leader showed "remarkable understanding and sensitivity" in private about West Germany's special relations with Eastern Europe.

Hua ducked two questions today from reporters about the Soviets, "out of respect for my hosts," and because he didn't want to talk about third countries."

The Chinese leader, who has stressed the need for "a strong Germany and a strong and unified Western Europe, as a counterweight to the Soviets, said today that he and Schmidt shared the opinion that strengthening ties was not only in the interests of both countries, but also of world peace.

Schmidt, too, proclaimed Bonn's interest in "a strong and independent China."

Bonn's normally polite and formal press conference routine was interrupted, however, when Rudi Dutschke a leader of the leftist student rebellion in the 1980s known as "Red Rudi," attempted to shout a question about human rights violations in China and then left the room noisely when he was not recognized by Schmidt's press spokesman, Klaus Boelling.

Earlier, Hua visited several West German industries.