Computer Science for IGCSE & O level - Programming (Section 15 - No. 12)

What is the primary function of the 'length' string method?
To extract a portion of the string.
To determine the number of characters in the string.
To convert the string to uppercase.
To find the first occurrence of a character.

Explanation

'length' returns the number of characters in the string.

Comments (0)

Advertisement