String Method Review

Beschreibung

AP Computer Science Quiz am String Method Review, erstellt von Shannon Anderson-Rush am 05/10/2020.
Shannon Anderson-Rush
Quiz von Shannon Anderson-Rush, aktualisiert vor 6 Monate
Shannon Anderson-Rush
Erstellt von Shannon Anderson-Rush vor etwa 4 Jahre
1203
0

Zusammenfassung der Ressource

Frage 1

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

Frage 2

Frage
Which of the following returns the last character of the string str?
Antworten
  • str.substring(0);
  • str.substring(0, str.length());
  • str.substring(length(str));
  • str.substring(str.length()-1);
  • str.substring(str.length());
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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