Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

The statement X = Z means
Options
A X equals to Z
B assign the value of variable X to variable Z
C assign the value of variable Z to variable X
Correct Answer
D X is less than Z
Correct Answer

Option C is the correct answer.

Detailed Explanation

In programming, '=' is the assignment operator. The statement 'X = Z' takes the value stored in variable Z and stores (assigns) it into variable X.

Hint

Assignment goes from right to left.

Question Info