String Methods

AP Computer Science A· difficulty 1/5

<code>"hello".length()</code> returns

  • A

    4

  • B

    Compile error

  • C

    5

    check_circle
  • D

    6

Explanation

Five characters.

Want 10 more like this — adaptive to your weak spots?

Related questions