Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1,Which of the Boolean expressions below is incorrect? (true) && (3 => 4) !(x >

ID: 3903469 • Letter: 1

Question

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'

Explanation / Answer

1) (true) && (3 => 4) (x != 0) || (x = 0) (-10