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

Test

ArrayList Quize

alim586 8 preguntas

Hacer el test

Preguntas del test (8)

  1. 1You can increase and decrease the size of an Array
    1. AVerdadero
    2. BFalso
  2. 2Which of the properties are the properties of an ArrayList?
    1. AIt implements the interface List
    2. BIt maintains it insertion
    3. CIt doesn't allow duplicate value to be added to it
    4. DIt allows null values to be added
  3. 3What happens when you create the following object of an ArrayList?

    ArrayList<String> anArrList = new ArrayList<>();
    1. Athe no-argument constructor defined in the class ArrayList.java, constructs an empty list with an initial capacity of ten
    2. Bthe no-argument constructor defined in the class ArrayList.java, construct an empty list with an no capacity
    3. CNon of the above
  4. 4Which of the statements are true ?
    1. AArrayList defines a instance variable of type List to store all it's individual elements
    2. BArrayList defines a instance variable of type Array to store all it's individual elements
    3. CThe capacity of the ArrayList is the length of this instance variable
    4. DAll are true
  5. 5The reference to the instance variable that stores the element of the ArrayList is: elementData
    1. AVerdadero
    2. BFalso
  6. 6The method addAll (Collection<? extends E> c) appends all the elements in the specified collection's to the end of this list, in the order they're returned by the specified iterator.
    1. AVerdadero
    2. BFalso
  7. 7An Array can accept duplicate object values
    1. AVerdadero
    2. BFalso
  8. 8What does clone method defined in the class ArrayList doe ? Which of the statements are true?
    1. AIt creates a new instance of the ArrayList to be cloned
    2. BIt copies the element references, but not the objects
    3. CBoth of the answers are true
    4. DNon of the above

Información

Descripción
OCA Java 7 SE (Arrays) OCA Java SE 7 Test sobre ArrayList Quize, creado por alim586 el 19/06/2015.
Autor
alim586
Idioma
English
Visitas
33
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?