Let $k$ be a positive integer. Is it true that any finite group $H$ of cardinal $4k+2$ whose center contains an element $h$ of order $2$ is isomorphic to the direct product $H=(\mathbb{Z}/2\mathbb{Z})\times G$, where $G=H/\{1,h\}$?
An equivalent statement would be: Let $G$ be a finite group of odd cardinal. Is it true that the second cohomology group $H^2(G,\mathbb{Z}/2\mathbb{Z})$ with respect to the trivial action of $G$ on $\mathbb{Z}/2\mathbb{Z}$, vanishes?