Examlex

Solved

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

question 25

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:

Serotonin

A neurotransmitter that has a key role in regulating mood, digestion, sleep, and other bodily functions.

Endogenous Opioids

Natural pain-relieving peptides produced by the body, such as endorphins, that modulate pain and stress responses.

Psychoneurological System

Relates to the study and interaction of the psychological processes and the nervous system.

Self-esteem

An individual's subjective evaluation of their own worth or value.

Related Questions