ap comtupter science final

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Assume that the boolean variables a, b, c, and d have been declared and initialized. Consider the following expression. !( !( a && b ) || ( c || !d )) Which of the following is equivalent to the expression?

( a &&b) || (c || !d)

Assume that x and y have been declared and initialized with int values. Consider the following Java expression. Which of the following is equivalent to the expression given above?

( y > 100000 || x > 1000) && (y > 10000 || x <1500)

Assume that a and b have been defined and initialized as int values. The expression ! ( ! (a != b ) && (b > 7) ) is equivalent to which of the following?

(a != b) || (b <=7)

(a && (b || !a)) == a && b

Only when b is true

Which of the following code segments will produce the same output as the code segment above?

for (int k =4; k <= 100; k =k+4) System .println(k);


Kaugnay na mga set ng pag-aaral

Chapter 37 - Obstetrics and Care of the Newborn

View Set