Examlex

Solved

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

question 17

Multiple Choice

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


Definitions:

Organizational Culture

The common principles, convictions, and standards that affect how organization members engage with one another and with stakeholders.

Emotional Withdrawal

The process of detaching or distancing oneself emotionally from a situation or relationship.

Political Tactic

Strategies or maneuvers used by individuals or groups within an organization to gain advantage or power over others, often for personal gain.

Confidence

The feeling or belief that one can rely on someone or something; self-assurance.

Related Questions