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) 90
B) 110
C) 130
D) 210
Correct Answer:
Verified
Q3: What will be the value of x
Q25: Before entering a loop to compute a
Q26: This type of loop is ideal in
Q28: A for loop normally performs which of
Q31: How many times will the following do-while
Q32: Given the following statement, which statement will
Q33: A sentinel value _ and signals that
Q34: Assume that inputFile references a Scanner object
Q35: In all but rare cases, loops must
Q46: Which of the following are pre-test loops?
A)
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