Page 1 of 1
About Question enthuware.ocajp.i.v7.2.963 :
Posted: Thu Apr 09, 2015 5:00 pm
by dmcinnis1
hi,
I tried INT1 = 100 and INT2 = 0. The condition clause fails I assumed the println statement would not be executed. INT1 and INT2 could be any integer values. What am I missing?
Re: About Question enthuware.ocajp.i.v7.2.963 :
Posted: Thu Apr 09, 2015 8:27 pm
by admin
Since INT1 and INT2 can be any two integers, the code should produce the same output for any values. Not just INT1=100 and INT2 = 0.
Re: About Question enthuware.ocajp.i.v7.2.963 :
Posted: Fri Apr 10, 2015 12:47 pm
by dmcinnis1
I bobbled it! thanks for your patience.
Re: About Question enthuware.ocajp.i.v7.2.963 :
Posted: Tue Nov 03, 2015 8:44 am
by Mushfiq Mammadov
The question is clear, but it would be good to add "(INT1 < INT2)" after "INT1 and INT2 can be any two integers" for more clarity. Because if we use vice-versa (INT1 = 3 and INT2 = 1) the result of option 1, option 2, option 3 and the orginal code are same: no output
Re: About Question enthuware.ocajp.i.v7.2.963 :
Posted: Tue Nov 03, 2015 9:10 pm
by admin
INT1 and INT2 can be any numbers. Not just INT1<INT2. So even if some code snippets produce the same output for INT1>INT2, you need to check whether they do so for INT1<INT2 as well before selecting them as correct options.
Re: About Question enthuware.ocajp.i.v7.2.963 :
Posted: Wed Nov 04, 2015 12:32 am
by Mushfiq Mammadov
Oh, you are right, it have to be consistent for both case