Consider this informal description of some instructions:
if ( __________________ )
document.write(aNumber is between 1 and 10 inclusive)
else
document.write(aNumber is less than 1 or greater than 10)
Which of the following Boolean conditions would be most appropriate for
testing the value of aNumber? You can assume that aNumber has been
properly declared and holds an integer value.
1) (aNumber >= 1) || (aNumber <= 10)
2) (aNumber < 1) || (aNumber > 10)
3) (aNumber >= 1) && (aNumber <= 10)
4) (aNumber >1) && (aNumber < 10)
2007-09-15
02:48:19
·
2 answers
·
asked by
ssmlrm
1
in
Computers & Internet
➔ Programming & Design