What will be the value of x after the following statements are executed?

```
int x = 10;
switch (x)
{
case 10:
x += 15;
case 12:
x -= 5;
break;
default:
x *= 3;
}
```

a. 30
b. 20
c. 25
d. 5


b. 20

Computer Science & Information Technology

You might also like to view...

What does a primary key do?

a. Identifies each row of a table. b. Selects a number of rows from a database. c. Stores a bunch of related data. d. None of the above.

Computer Science & Information Technology

How do you know if Track Changes is turned on?

A) The Track Changes button displays with a solid, bold border. B) The Track Changes button is orange. C) The Track Changes button is red. D) The Track Changes button flashes.

Computer Science & Information Technology

A single command to accomplish a task or multiple tasks automatically is called a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

You cannot sort data in a report using a field that is already used to group records.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology