[Solved] Traces

$25

File Name: Traces.zip
File Size: 56.52 KB

SKU: [Solved] Traces Category: Tag:
5/5 - (1 vote)

1. Given the following code:

int i = 0; int x = 7;

int y = 13;

while (i < y) //(a)

{ if (i >= x)

{ System.out.print(i + );

} i=i+2; //(b)

}

System.out.println();

i .What is the output?

ii. What is the nal value for i?

iii. How many tines is condition (a) checked?

iv. How many tines is statenent (b) executed?

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Traces
$25