Given the following code fragment, what is the final value of y?
Int x, y;
X = -1;
Y = 0;
Whilex <= 3)
{
Y += 2;
X += 1;
}
A) 2
B) 10
C) 6
D) 8
Correct Answer:
Verified
Q47: What is the value of x after
Q48: Given the following code fragment, what is
Q49: Given the following code fragment, and an
Q50: Given the following code fragment and the
Q51: What is the final value of x
Q53: Executing one or more statements one or
Q54: What is the output of the following
Q55: Given the following code fragment, which of
Q56: Given the following code fragment and the
Q57: What is the advantage of the C++11
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