Examlex

Solved

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

question 13

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:

Total Cost

The aggregate amount of all costs involved in producing a product or delivering a service, including direct materials, labor, and overhead expenses.

Indirect Manufacturing Cost

Costs in manufacturing that are not directly traceable to individual products, such as maintenance, utilities, and factory supervision.

Conversion Costs

The combined costs of direct labor and manufacturing overheads involved in transforming raw materials into finished goods.

Direct Labor

The wages paid to workers who are directly involved in the production of goods or services.

Related Questions