Q. If str = "VWXYZ", what returns str.charAt(3)?

  • (A) X
  • (B) Y
  • (C) Z
  • (D) False
πŸ’¬ Discuss
βœ… Correct Answer: (B) Y
Explanation: The method charAt() returns the character at the specified index in a string. The index of the first character is 0.
Explanation by: Yogesh
The method charAt() returns the character at the specified index in a string. The index of the first character is 0.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
247
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
88%
Success Rate