Skip to main content

Strings Quiz

Editorial

13 questions across the three Strings lessons: how strings compare and split, characters as numbers, what a one-pass parser keeps, and which centers find a palindrome. Pick an answer to see whether it's right and why. Nothing is saved, so you can take it again.

If one trips you up, its lesson is Introduction to Strings, Parsing Strings in One Pass or Palindromes: Expand Around the Center.

Quiz

1 / 13

Multiple choice

Java: String a = new String("abc"); and String b = "abc";. What do a == b and a.equals(b) give?