Multiple choice technology programming languages

Value is given to a variable using

  1. conditional statement

  2. assignment statement

  3. looping statement

  4. None of the Above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Assignment statements using the = operator assign values to variables in C++. Conditional statements (if/else) control flow, and looping statements (for/while) repeat code blocks - none directly assign values.