String Method Review

Descripción

AP Computer Science Test sobre String Method Review, creado por Shannon Anderson-Rush el 05/10/2020.
Shannon Anderson-Rush
Test por Shannon Anderson-Rush, actualizado hace 6 meses
Shannon Anderson-Rush
Creado por Shannon Anderson-Rush hace alrededor de 4 años
1203
0

Resumen del Recurso

Pregunta 1

Pregunta
Consider the following code segment: String newString = "Welcome"; String anotherString = "Home"; newString = anotherString + "Hello"; What is the value of newString?
Respuesta
  • HomeHello
  • HelloHello
  • WelcomeHello
  • Welcome Hello
  • Home Hello

Pregunta 2

Pregunta
Which of the following returns the last character of the string str?
Respuesta
  • str.substring(0);
  • str.substring(0, str.length());
  • str.substring(length(str));
  • str.substring(str.length()-1);
  • str.substring(str.length());
Mostrar resumen completo Ocultar resumen completo

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr