What is the value of a after execution of the following code?

int a = 10;
for (int ctr = 0; ctr < 4; ctr++)
a = a – 1;
a = a + 3;

a) 8
b) 9
c) 18
d) 20


b) 9

Computer Science & Information Technology

You might also like to view...

Another strategy for protecting important files is to ____ copy them to a USB flash drive, external hard disk, CD, or DVD.

A. hard B. soft C. manually D. auto

Computer Science & Information Technology

Which of the following is an alias for the chop() PHP function?

a. trim() b. ltrim() c. rtrim() d. \0

Computer Science & Information Technology

Summarize the steps used in a WebApp testing strategy..

What will be an ideal response?

Computer Science & Information Technology

What list operation does this depict?

Given the following diagram.

What list operation does this depict?
a. deleting an item in the list
b. inserting an item in the list
c. expanding the array to make it larger
d. counting the number of items in the list

Computer Science & Information Technology