According to Wikipedia, "Trivia" refers to bits of information, often of little importance.
(Questions posted here are very unlikely to show up on a CLAD exam, for that we have these other discussions)
I guess we could have an occasional quick pop quiz that should post no problems to the seasoned programmer, but might stump some of the newcomers for a few minutes. So here is the first one:
QUESTION: Given the code shown in the image, find four different inputs that will make the output TRUE when the program is executed.
(Any numeric datatype is allowed, that's why the wire is currently a generic black. All primitives are straight from the palettes. No fake modifications or hidden custom code).
Since I was already privy to the discussion that prompted this, I will give a hint.
You said any numeric datatype is allowed, but that's not completely true 🙂
Broken wires are allowed, but it would be difficult to generate a TRUE (i.e. the required task!) with broken code. 😄
so i could do it for integers, not for floats, and i am quite confused.
i hope you will give a nice explanation
Time for another
That's a Rube Goldberg. I can replace that with one node.