What is the value of x when it is written to the debug log?

Refer to the following Apex code:

Integer x=0;

do

x=1;

x++;

} while (x< 1);

System.debug (x);

What is the value of x when it is written to the debug log?
A . 0
B . 1
C . 2
D . 3

Answer: C

Latest DEX-450 Practice Questions with 456 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments