I think i have heard Israelis use both of the following constructions to mean, "The answer is yes."
התשובה זאת כן
התשובה היא כן
Is there a preferred way?
Then you say a noun is a noun (an I think yes and no are somewhat like nouns?) you have to use a pronoun. Like in
מלפפון הוא ירק.