‎08-08-2017 10:34 AM - edited ‎08-08-2017 10:34 AM
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).
‎08-08-2017 10:59 AM
Since I was already privy to the discussion that prompted this, I will give a hint.
‎08-08-2017 03:34 PM
You said any numeric datatype is allowed, but that's not completely true 🙂
‎08-08-2017 03:41 PM
@Gregory wrote:
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. 😄
‎08-09-2017 05:03 AM - edited ‎08-09-2017 05:28 AM
so i could do it for integers, not for floats, and i am quite confused.
i hope you will give a nice explanation
‎08-09-2017 05:48 AM
jwcs,
‎08-09-2017 06:03 AM
@crossrulz
‎10-27-2017 04:46 PM
Time for another
‎10-27-2017 06:02 PM
@JÞB wrote:
Time for another
‎10-29-2017 07:03 PM
@JÞB wrote:
Time for another
That's a Rube Goldberg. I can replace that with one node.