Prepare for the 241 Computer Science Certification Exam with comprehensive flashcards and multiple choice questions. Enhance knowledge with explanations and hints to excel in your test journey!

Multiple Choice

Which operator is used to assign the result of an expression to a variable?

The binding of a computed value to a variable is done by the assignment operator. It takes the value produced by the expression on the right and stores it in the variable on the left. For example, x = a + b computes a + b and then assigns that result to x. This is different from arithmetic operators like addition, multiplication, or bitwise OR, which just compute a value. They don’t store that value anywhere unless you pair them with assignment (such as x = a + b or x += 5). So the operator that saves the result into a variable is the assignment operator.

The binding of a computed value to a variable is done by the assignment operator. It takes the value produced by the expression on the right and stores it in the variable on the left. For example, x = a + b computes a + b and then assigns that result to x. This is different from arithmetic operators like addition, multiplication, or bitwise OR, which just compute a value. They don’t store that value anywhere unless you pair them with assignment (such as x = a + b or x += 5). So the operator that saves the result into a variable is the assignment operator.