What will be the value of x after the following code is executed?
Int x = 10, y = 20;
While (y < 100)
{
X += y;
Y += 20;
}
A) 130
B) 210
C) 110
D) 90
Correct Answer:
Verified
Q7: You can use the PrintWriter class to
Q7: When you open a file with the
Q8: When you pass the name of a
Q22: The variable used to keep the running
Q26: The while loop is ideal in situations
Q28: In all but rare cases, loops must
Q31: In a for loop, the control variable
Q32: Given the following statement, which statement will
Q32: In general, there are two types of
Q40: Assuming that inputFile references a Scanner object
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents