Which if statement would be true if you needed to see if x (an int)
was 5 and y (an int) was 7?

A. if ( x = 5 && y = 7 )
B. if ( x == 5 || y == 7 )
C. if ( x == 5 || y =7 )
D. if( x == 5 && y == 7)

D

Computer Science & Information Technology

You might also like to view...

When searching for "Red" or "Rad" or "Rid" or "Rod", but NOT "Rodney" or "Reed" or "Ron', which of the following criteria should be used?

A) R* B) R?? C) R?d D) R*d

Computer Science & Information Technology

Which layout manager is the default for JFrame?

a. FlowLayout b. BorderLayout c. GridLayout d. None of the above

Computer Science & Information Technology