Multiple choice technology programming languages

The following statements make “length” be what number ? int length; length = 4; length ++;

  1. 4

  2. 5

  3. 6

  4. 7

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

The variable length is initially assigned the value 4. The increment operator ++ then increases its value by 1, resulting in 5.