Examlex

Solved

What Will Be the Values of Ans, X, and Y

question 53

Multiple Choice

What will be the values of ans, x, and y after the following statements are executed?
int ans = 35, x = 50, y = 50;
If (x >= y)
{
Ans = x + 10;
X -= y;
}
Else
{
Ans = y + 10;
Y += x;
}


Definitions:

Multidivisional Structure

A structure that organizes departments into larger groups called divisions.

Direct Lines of Authority

The clear and straightforward chain of command within an organization, where orders and decisions flow from higher levels to lower levels of hierarchy.

18th-century Economist

A scholar or expert in economics who lived and worked during the 1700s, contributing to the development of economic theories or principles.

Related Questions