Question
1,Which of the Boolean expressions below is incorrect? (true) && (3 => 4) !(x > 0) && (x > 0) (x > 0) || (x
1,Which of the Boolean expressions below is incorrect?
(true) && (3 => 4)
!(x > 0) && (x > 0)
(x > 0) || (x < 0)
(x != 0) || (x = 0)
(-10 < x < 0)
2, Suppose x=10 and y=10. What is x after evaluating the expression (y > 10) && (x++ > 10)?
9
10
11
3, The while loop and the do loop are equivalent in their expressive power; in other words, you can rewrite a while loop using a do loop, and vice versa.
true
false
4, The modifiers and return value type do not contribute toward distinguishing one method from another, only the parameter list.
true
false
9, (int)('a' + Math.random() * ('z' - 'a' + 1)) returns a random number ________.
between 0 and (int)'z'
between (int)'a' and (int)'z'
between 'a' and 'z'
between 'a' and 'y'
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started