CSIS 312 Quiz 3

  1. For

String c = “hello world”;

The Java statements

int i = c.indexOf(‘o’);

int j = c.lastIndexOf(‘l’);

will result in:

  1. String objects are immutable. This means they ________.
  2. Which of the following creates the string of the numbers from 1 to 1000 most efficiently?
  3. The String method substring returns ________.
  4. Which of the following are static Character methods?
  5. Which of the following statements is true?
  6. Consider the statements below:
  7. Which of the Java strings represent the regular expression ,\s*?
  8. Which of the following statements is true?
  9. The statement

s1.equalsIgnoreCase(s4)

is equivalent to which of the following?

$1.99
Buy Answer Key
  • Find by class