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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!