Solved

Suppose the Variables X and Y in the Following Bare

Question 1

Multiple Choice

Suppose the variables X and Y in the following Bare Bones program have the values 3 and 2, respectively, when execution begins. clear Z;
While X not 0 do;
While Y not 0 do;
Decr Y;
Incr Z;
End;
Incr Z;
Decr X;
End;
What will be the value of Z when the program terminates?


A) 0
B) 1
C) 5
D) 6

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents