What will be the value of x after the following code is executed? int x = 10, y = 20;
While (y < 100)
{
X += y;
}
A) 90
B) 110
C) 210
D) This is an infinite loop
Correct Answer:
Verified
Q9: What will be the value of x
Q10: This is a control structure that causes
Q11: A loop that repeats a specific number
Q12: In the following code, what values could
Q13: This type of loop allows the user
Q15: How many times will the following for
Q16: This variable controls the number of times
Q17: The increment operator is:
A) ++
B) --
C) *=
D)
Q18: This is a value that signals when
Q19: If you are using a block of
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