And if that confidence level is high enough for it to output an answer, but that answer is wrong or nonsensical, what do we call it?
The former statement is a bold claim that would require some sort of evidence. The latter nobody really argues with.
Of course, it's not possible for an LLM to actually "know" anything in that sense of the word.