What would be the value of this expression !(13%7 == 24%9)?
Printable View
What would be the value of this expression !(13%7 == 24%9)?
Why not test it and see? "really quickly". Either that, or do simple maths and simple logic.
!6 == 6) evaluates to !TRUE or FALSE.
With all the things to learn in programming, why is this kind of trivia seen as important, though?
Not always needed, but logical expressions like this should be grouped by their own parenthesis:
!((13%7) == (24%9))
5 seconds to try.
30 minutes for a forum reply (ohh, poetry)
Go figure....
I am going to guess he could not test it because this person was IN a test and didn't have access to the computer, but did have access to his iPhone/Blackberry/other handheld. Hence the "really quick" subject. If that's the case I hope the cheater failed.
Wouldn't they say phones... are not allowed during a test?
Sweet, zacs! Good to know, but I bet that's a rare occurrence. I know I've seen questions here and elsewhere before where someone was in some sort of timed test looking for a quick answer...this one struck me as that sort of situation.
BBC News - Hi-tech exam cheating increases says Ofqual
Notice the bluster over the 0.03% detection rate.
I wonder what that actual undetected cheating rate is.