To answer someone's question as to whether something is so or not, can you simply reply, "of course it is!" just as we do in English?
Example: Can you swim？ (你会游泳吗？） Of course I can swim! (As in, that's a ridiculous question). (当然啊！）
Thanks in advance!