When I solve problems I get some correct and I get some incorrect.
When I'm working out problems I sometimes get some of them incorrect.
「問題を解くと正解したり正解しなかったりする」の直訳はWhen I solve problems I get some correct and I get some incorrect になりますが、文脈が分からないので不自然に感じます。
文脈を加えると訳が変わると思います。
受けたテストの問題だったら I got some questions wrong on the test だけで通じます。満点ではないので、正解した物と正解しなかった物があるはずです。
模擬試験の話だったら when I was practising/studying for my test I sometimes got all the questions correct (and I sometimes got some incorrect).模擬試験の問題を解いていた時に、満点を取ったり、取らなかったりした。
・I get some questions right and some wrong.
「(問題を解くと)いくつかの問題は正解して、いくつかは間違えます」
「自分が問題を解いた結果、正解したり正解しなかったりする」というニュアンスを伝えられます。
・My answers are hit-or-miss.
「私の回答は当たったり外れたりです(正解したり正解しなかったりです)」という意味の表現です。