why the program answer is true? my expected answer was flase.please explain
1000 is 10**3
my expected answer was flase
but the answer came true. why ?
1000 is bigger than 256 and therefore shouldn't be cached. Or am I missing something?
why the program answer is true? my expected answer was flase.please explain
1000 is 10**3
my expected answer was flase
but the answer came true. why ?
1000 is bigger than 256 and therefore shouldn't be cached. Or am I missing something?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkiran SwainPosted Apr 6, 2023, 5:21 AM
The program answer is true because the statement "1000 is 103" is a mathematical fact and is true. The notation "103" means "10 raised to the power of 3," which equals 1000.
The statement about caching is not related to the truth value of the mathematical fact. It is true that 1000 is larger than 256 and may not be cached in certain contexts, but that is a separate issue from the truth value of the statement "1000 is 10**3".
In summary, the statement "1000 is 10**3" is true because it is a mathematical fact, regardless of whether or not it may be cached in certain contexts.
Please let me know if you find my answer helpful by accepting it.
MD NAYEEMPosted Apr 6, 2023, 1:35 PM
I thought I understood this behavior: 1000 is to big to be cached. 1000 and 10**3 point to 2 different objects. But I had it wrong: