GoConqr has a new look! Let us know what you think.

Quiz

String Method Review

Shannon Anderson-Rush 2 questions 1,214 views

Take the quiz

Questions in this quiz (2)

  1. 1Consider the following code segment:
    String newString = "Welcome";
    String anotherString = "Home";
    newString = anotherString + "Hello";
    What is the value of newString?
    1. AHomeHello
    2. BHelloHello
    3. CWelcomeHello
    4. DWelcome Hello
    5. EHome Hello
  2. 2Which of the following returns the last character of the string str?
    1. Astr.substring(0);
    2. Bstr.substring(0, str.length());
    3. Cstr.substring(length(str));
    4. Dstr.substring(str.length()-1);
    5. Estr.substring(str.length());

Information

Description
AP Computer Science Quiz on String Method Review, created by Shannon Anderson-Rush on 05/10/2020.
Language
English
Views
1,214
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?