Quiz
String Method Review
Perguntas do quiz (2)
1Consider the following code segment:
String newString = "Welcome";
String anotherString = "Home";
newString = anotherString + "Hello";
What is the value of newString?- AHomeHello
- BHelloHello
- CWelcomeHello
- DWelcome Hello
- EHome Hello
2Which of the following returns the last character of the string str?
- Astr.substring(0);
- Bstr.substring(0, str.length());
- Cstr.substring(length(str));
- Dstr.substring(str.length()-1);
- Estr.substring(str.length());
Informações
- Descrição
- AP Computer Science Quiz sobre String Method Review, criado por Shannon Anderson-Rush em 05-10-2020.
- Idioma
- English
- Visualizações
- 1.214
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz