Test
String Method Review
Preguntas del test (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());
Información
- Descripción
- AP Computer Science Test sobre String Method Review, creado por Shannon Anderson-Rush el 05/10/2020.
- Idioma
- English
- Visitas
- 1.214
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test