I went to a job interview yesterday and I got the following test question:
What is the output of this logic:
if(TRUE && FALSE AND TRUE OR 1 || TRUE && ((TRUE || FALSE) || FALSE)) {
PRINT "A";
}
else print "B";
I had to evaluate the result in my head, which I could not do.
How would you go about this?