Multiple Choice
Which of the following conditions can be added to the code below so it will loop until the user enters "no" or "NO"? Scanner in = new Scanner (System.in) ;
System.out.print ("Continue? ") ;
String response = in.next() ;
While (/* put condition here */)
{
System.out.println ("Hello beautiful!") ;
System.out.print ("Continue? ") ;
Response = in.next() ;
}
A) response.equals("no") != response.equals("NO")
B) !(response.equals("no") || response.equals("NO") )
C) !response.equals("no") || !response.equals("NO")
D) !(response.equals("no") && response.equals("NO") )
Correct Answer:

Verified
Correct Answer:
Verified
Q112: What is the output of this code
Q113: What is the outcome of the following
Q114: What is the output of the code
Q115: What are the values of i and
Q116: Insert a statement that will correctly terminate
Q118: What will be the final output of
Q119: Which of the following loop(s) should be
Q120: How many times will the output line
Q121: What is the output of the code
Q122: What is the output of the code