Quiz
Ohne Titel
Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.
Fragen in diesem Quiz (8)
1A string is a sequence of [blank_start]characters[blank_end]. In many languages, strings are treated as an [blank_start]array[blank_end] of characters,
but in Java a string is an [blank_start]object[blank_end]- Abytes
- Bcharacters
- Cshorts
- Darai
- Earrai
- Farray
- Garray
- Hclass
- Iobject
- Jsimple type
2You can create a string from an array of characters
- ARichtig
- BFalsch
3Does the following code change the contents of the string?
String s = "Java";
s = "HTML";- Ayes
- Bno
4What will be printed by the following code:
String s1 = new String("Welcome to Java");
String s2 = "Welcome to Java";
System.out.println(s1.equals(s2)); ?- Ait will cause compilation error
- Btrue, s1 and s2 have the same content
- Ctrue, s1 and s2 refer to the same object
- D0, equals() method return integer
- Efalse, s2 is internal string - they refer different objects
5System.out.println("Welcome to Java".charAt(0));
result of the preceding code is: [blank_start]W[blank_end]- AW
6String s3 = s1.concat(s2) is the same as String s3 = s1 + s2;
- ARichtig
- BFalsch
7Which of the following methods return integer?
Explain what is each method for- AregionMatches()
- BstartsWith()
- CcompareToIgnoreCase()
- Dsubstring()
8split() method returns a new string with blank characters trimmed on both sides
- ARichtig
- BFalsch
Informationen
- Beschreibung
- Computer Science Quiz am Ohne Titel, erstellt von zlaya zaya am 03/05/2017.
- Autor
- zlaya zaya
- Sprache
- English
- Aufrufe
- 0
- Verlauf
- Erstellt am 3 Mai 2017 · aktualisiert am 6 Mai 2017
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz