What is the value of ans after the following code has been executed?

```
int x = 35;
int y = 20, ans = 80;
if (x < y)
ans += y;
```

a. 80
b. 100
c. 35
d. 55


a. 80

Computer Science & Information Technology

You might also like to view...

The purpose for array initialization is:

A. to provide default values so that data manipulation can proceed without null errors. B. used when you need to keep all values in the array the same through program execution. C. not needed as C++ automatically initializes values upon array creation. D. helpful when declaring the data type for the array.

Computer Science & Information Technology

Which of the following is the path to the Zoom button?

A. (View tab | Zoom group) B. (Home tab | Zoom group) C. (Insert tab | Zoom group) D. (Zoom tab | View group)

Computer Science & Information Technology

In the accompanying figure, ____ is the selected image.

A. club_house.jpg B. boardwalk.png C. sea_spa_logo.png D. su_banner.gif

Computer Science & Information Technology

Melanie is writing an article for the school newspaper. Her editor assigned her a maximum length; however, Melanie has some strong opinions she would like to express.Suspecting she may need to make other formatting changes in her document, Melanie switches to ____ view to get a more accurate picture of how the changes will look on the page.

A. Print Layout B. Draft C. Page Layout D. Full Screen

Computer Science & Information Technology