15
16
14
17
Answer is Right!
Answer is Wrong!
The correct answer is A. 15.
The Length
property of a string returns the number of characters in the string. In this case, the string is “Veronica Yardley”, which has 15 characters. Therefore, the value of num
after the code is executed will be 15.
Option B is incorrect because the string “Veronica Yardley” has 15 characters, not 16.
Option C is incorrect because the string “Veronica Yardley” does not have 14 characters.
Option D is incorrect because the string “Veronica Yardley” does not have 17 characters.