I took a guess about what kind of questions they would ask, and I was right.
この場合、次のような言い方ができますよ。
ーI took a guess about what kind of questions they would ask, and I was right.
「私は(試験で)どんな質問をされるかを推測し、私は正しかった」=「どんな問題が出るかの山が当たった」
ご参考まで!
・My guess was right on the mark.
「ヤマ(予想)が当たった」
・My prediction hit the spot.
「張っていたヤマ(予想)が見事に当たった」
right on the mark で「予想がドンピシャで当たる・ヤマが当たる」という意味になります。
他には:
I took a guess on what would be on the exam, and it totally paid off!
「テストに出そうなヤマを張ったら、見事に当たって(報われて)合格できそうです!」
ご質問ありがとうございました。
お役に立てれば幸いです。