解:
设这个三角形的第三条边的长为$x\ \mathrm{cm}。$
由题意,得$5-2<x<5+2,$即$3<x<7。$
(1) 由题意,得$x$为偶数,
$\therefore x=4$或$6。$
当$x=4$时,三角形的周长为$11\ \mathrm{cm};$
当$x=6$时,三角形的周长为$13\ \mathrm{cm}。$
$\therefore$ 当这个三角形的第三条边的长为$4\ \mathrm{cm}$时,其周长为$11\ \mathrm{cm};$
当这个三角形的第三条边的长为$6\ \mathrm{cm}$时,其周长为$13\ \mathrm{cm}。$
(2) $\because$ 这个三角形的周长为偶数,
$\therefore x=5。$
当$x=5$时,三角形的周长为$12\ \mathrm{cm}。$
$\therefore$ 这个三角形的第三条边的长为$5\ \mathrm{cm},$周长为$12\ \mathrm{cm}。$