Examlex

Solved

What Will Be the Values of Ans,x,and Y After the Following

question 10

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:

Autonomic Nervous System

The segment of the nervous system that regulates involuntary body functions, including respiration, cardiac rhythm, and digestion.

Sensory Pathway Neurons

Nerve cells involved in the transmission of sensory information from the body's receptors to the brain.

Keyboard

An input device consisting of a set of individual keys similar to those of a typewriter, used for entering data into a computer or other electronic device.

Reflexes

Automatic, involuntary responses to specific stimuli that occur without conscious thought, as part of the body’s defense mechanisms.

Related Questions