nerdexam
CIW

1D0-635 · Question #6

Consider the following code: What needs to be changed to allow this script to run without error?

The correct answer is C. Change the characterAt method call to charAt. See the full explanation below for the reasoning.

Question

Consider the following code:

What needs to be changed to allow this script to run without error?

Exhibit

1D0-635 question #6 exhibit

Options

  • AChange the substring method call to substr
  • BChange the substring method call to substr()
  • CChange the characterAt method call to charAt
  • DChange the characterAt method call to characterat

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    85% (22)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-635 Practice