For example
Will this query be answered correctly?
Yes
Has this query been answered correctly?
A.
Yes, therefore "yes" is the correct answer, therefore this query has been answered correctly.
B.
No, therefore "no" is the correct answer, therefore this query has been answered incorrectly.
Either assumption is verified.
What is the technical term for this phenomenon, and what formalised studies exist on it? The closest I can find is the informal concept of "self fulfilling prophecy."