¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Sin título

zlaya zaya 8 preguntas Actualizado el 6 may 2017

Hacer el test

Este test tiene tipos de pregunta que se abren en el reproductor de siempre.

Preguntas del test (8)

  1. 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]
    1. Abytes
    2. Bcharacters
    3. Cshorts
    4. Darai
    5. Earrai
    6. Farray
    7. Garray
    8. Hclass
    9. Iobject
    10. Jsimple type
  2. 2You can create a string from an array of characters
    1. AVerdadero
    2. BFalso
  3. 3Does the following code change the contents of the string?

    String s = "Java";
    s = "HTML";
    1. Ayes
    2. Bno
  4. 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)); ?
    1. Ait will cause compilation error
    2. Btrue, s1 and s2 have the same content
    3. Ctrue, s1 and s2 refer to the same object
    4. D0, equals() method return integer
    5. Efalse, s2 is internal string - they refer different objects
  5. 5System.out.println("Welcome to Java".charAt(0));

    result of the preceding code is: [blank_start]W[blank_end]
    1. AW
  6. 6String s3 = s1.concat(s2) is the same as String s3 = s1 + s2;
    1. AVerdadero
    2. BFalso
  7. 7Which of the following methods return integer?
    Explain what is each method for
    1. AregionMatches()
    2. BstartsWith()
    3. CcompareToIgnoreCase()
    4. Dsubstring()
  8. 8split() method returns a new string with blank characters trimmed on both sides
    1. AVerdadero
    2. BFalso

Información

Descripción
Computer Science Test sobre Sin título, creado por zlaya zaya el 03/05/2017.
Idioma
English
Visitas
0
Historial
Creado el 3 may 2017 · actualizado el 6 may 2017
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?