Examlex

Solved

What Is the Value of Ans, X, and Y After

question 29

Multiple Choice

What is the value 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:

G. Stanley Hall

An American psychologist and educator who is considered the founder of developmental psychology.

Psychology Journal

A publication that features articles, research results, and studies in the field of psychology.

Immediate Experience

Refers to the direct, unmediated interaction or encounter with phenomena in the present moment.

Wilhelm Wundt

A German psychologist who is generally acknowledged as the founder of experimental psychology.

Related Questions